Search found 16 matches
- Thu Jul 17, 2014 12:09 pm
- Forum: Sable
- Topic: Getting and setting variables at a given time
- Replies: 8
- Views: 34745
Re: Getting and setting variables at a given time
I open the project with Sable Developer, then run the DLL VBDemoControl in "External Dlls" folder. In DLL's window, I try to get data.
- Wed Jul 16, 2014 2:09 pm
- Forum: Sable
- Topic: Getting and setting variables at a given time
- Replies: 8
- Views: 34745
Re: Getting and setting variables at a given time
I've used your example DLL VBDemoControl in order to get the variable value.
Here is my test project. I try to get "Data Variable@2005", it does not work. But "Data Variable Auxiliary@2005" works fine.
Here is my test project. I try to get "Data Variable@2005", it does not work. But "Data Variable Auxiliary@2005" works fine.
- Wed Jul 16, 2014 7:19 am
- Forum: Sable
- Topic: Getting and setting variables at a given time
- Replies: 8
- Views: 34745
Re: Getting and setting variables at a given time
I've tried "parameter@time" for a variable of type "data" but it did not work. Does it work for all types of variables or for only variable of type "auxiliary"?
- Fri Jul 04, 2014 12:53 pm
- Forum: Sable
- Topic: Problems of executing JScript
- Replies: 10
- Views: 43063
Re: Problems of executing JScript
I reinstall Sable, it works now. Thanks again for your help!
- Thu Jul 03, 2014 12:09 pm
- Forum: Sable
- Topic: Problems of executing JScript
- Replies: 10
- Views: 43063
Re: Problems of executing JScript
This is my project. Thanks for your help!
- Wed Jul 02, 2014 2:56 pm
- Forum: Sable
- Topic: Problems of executing JScript
- Replies: 10
- Views: 43063
Re: Problems of executing JScript
Neither of them works.
- Wed Jul 02, 2014 9:20 am
- Forum: Sable
- Topic: Problems of executing JScript
- Replies: 10
- Views: 43063
Re: Problems of executing JScript
It works like a charm in Sable Developer!
However, it does not work with Sable Runtime, i have the error
"Error: Microsoft JScript runtime error
Error executing : x= test()
Reason: expected object
Text:
Line:3"
Thanks a lot for your help!
However, it does not work with Sable Runtime, i have the error
"Error: Microsoft JScript runtime error
Error executing : x= test()
Reason: expected object
Text:
Line:3"
Thanks a lot for your help!
- Wed Jul 02, 2014 7:36 am
- Forum: Sable
- Topic: Problems of executing JScript
- Replies: 10
- Views: 43063
Re: Problems of executing JScript
According to the manual of Microsoft Jscript (http://msdn.microsoft.com/en-us/library ... 90%29.aspx), name.replace(/"/g,'\''); replaces " by ', am i wrong?
By the way, i remove 2 lines with "replace" methods, it does not work either.
By the way, i remove 2 lines with "replace" methods, it does not work either.
- Tue Jul 01, 2014 2:47 pm
- Forum: Sable
- Topic: Problems of executing JScript
- Replies: 10
- Views: 43063
Problems of executing JScript
I've tried to run the following script in Sable but it did not work. I've got the error message "One of the commands on the button failed to execute. XCommand: Execute Script:JScript.test()". Would you please help me solve this problem? Thanks! function test() { var rangeCount = GetNumberO...
- Thu Jun 19, 2014 12:00 pm
- Forum: Sable
- Topic: Problems of executing Sable Script
- Replies: 6
- Views: 32644
Re: Problems of executing Sable Script
No, it doesn't work. GetNumberOfSubscriptElements(test) returns the number of elements of the subscript named "test"
- Thu Jun 19, 2014 8:39 am
- Forum: Sable
- Topic: Problems of executing Sable Script
- Replies: 6
- Views: 32644
Re: Problems of executing Sable Script
Can I use the function GetNumberOfSubscriptElements with a string variable ? For example:
Code: Select all
dim test as string
test = "type"
count = GetNumberOfSubscriptElements(test)
- Thu Jun 19, 2014 8:25 am
- Forum: Sable
- Topic: Problems of executing Sable Script
- Replies: 6
- Views: 32644
Re: Problems of executing Sable Script
By removing the quotes, it works now in Sable Developer. Thanks!
But I have always the problems with .spk file. I attach here my test project.
But I have always the problems with .spk file. I attach here my test project.
- Wed Jun 18, 2014 9:55 am
- Forum: Sable
- Topic: Problems of executing Sable Script
- Replies: 6
- Views: 32644
Problems of executing Sable Script
I try to get subscripts from model by using the following scripts Sub getSubscriptElements() dim count as integer dim value as string count = GetNumberOfSubscriptElements("type") msgbox ( count, "number" , MB_OK ) value = GetSubscriptElement("type",0) msgbox ( value, &q...
- Tue Jun 17, 2014 3:51 pm
- Forum: Sable
- Topic: Problems of publishing Sable with scripts
- Replies: 4
- Views: 24765
Re: Problems of publishing Sable with scripts
I've changed the encoding of my .js file to UTF-8, it works. Thanks!
- Tue Jun 17, 2014 3:12 pm
- Forum: Sable
- Topic: Problems of publishing Sable with scripts
- Replies: 4
- Views: 24765
Re: Problems of publishing Sable with scripts
I have tried your new version of Sable but it doesn't work.
- Mon Jun 16, 2014 3:46 pm
- Forum: Sable
- Topic: Problems of publishing Sable with scripts
- Replies: 4
- Views: 24765
Problems of publishing Sable with scripts
I try to publish a Sable project including a JS script file, i have the error "Error adding script file. Please check syntax" when running the spk file. My JS file has only one simple function : function test() { return 'helloworld'; } How can i fix this ? I herewith attach my test project...