
Error using SetGlobal
Can anyone point out why I am getting this error message!
The Function is SetVar() not SetGlobal().
SetGlobal() is a CDF function that allow you to set 100 string values in memory by number. SetVar() is a built in function to transfer named variables.
To retrieve value you use GetVar().
I still get the same message!
Re:Re:Re:Error using SetGlobal
Define a temp field such as:-
define temp "dummy" Number .
and then assign to this field the result of the SetVar:-
dummy := SetVar("gcandelete","yes") .
Re:Re:Re:Re:Error using SetGlobal
Sorry, still no luck. Now I am getting
Re:Re:Re:Re:Re:Error using SetGlobal
My Guess is that you are using an early version of DE8 before we switched the names on SetGlobal() to SetVar(). Due to conflict with the old CDF.
What version of DE8 are you using.
General advice is to always update to the latest version of DE8 (or any other DE version) before requesting help so we can all be sure we are using the same version. DE8 is still in rapid development so functions that is added to the product will only be available in the version listed in the Blog.
Alternatively state the full version number of the Version in the message ;-)
The Swtich from SetGlobal() to SetVar() was unfortunate but we decided to do it early after release to cause as little problem for existing users as possible. If one have used SetGlobal() in an app it will work until the function is re-parsed, then it will give an error message and expect SetVar()/GetVar().
The exception is when the function has been used on an Action, where the problem will be immediate upon upgrade as Actions are parsed every time they are executed.
Sorry for the inconvenience.
Re:Re:Re:Re:Re:Re:Error using SetGlobal
Below is the version I am currently using. I am going to upgrade it and post the results.
Re:Re:Re:Re:Re:Re:Re:Error using SetGlobal
I upgraded it to 8.0.0.1375 and it now works!
Thanks
Re:Re:Re:Re:Re:Re:Re:Re:Error using SetGlobal
Also I want to add that if you are making changes then you should also update the help. The Set/GetGlobal() help is out of date and it would have saved me a lot of time if it had been updated.
Re:Re:Re:Re:Re:Re:Re:Re:Re:Error using SetGlobal
You couldn't be more correct of course. This is an unforgivable omission and we will rectify it immediately.
On the humoristic side though, the help was correct for the DataEase version you had when you started ;-)