Easy to Create, Easy to Change - Easy to use!


Error using SetGlobal


Started by Kensington
Search
You will need to Sign In to be able to add or comment on the forum!

Error using SetGlobal

Can anyone point out why I am getting this error message!

Written by Kensington 22/10/13 at 16:22:07 Dataease [{8}]FIVE

Re:Error using SetGlobal

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().

Written by DataEase 22/10/13 at 20:14:57 Dataease [{8}]FIVE

Re:Re:Error using SetGlobal

I still get the same message!

Written by Kensington 22/10/13 at 20:24:47 Dataease [{8}]FIVE

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") .

Written by Peter Birney, PB Associates 22/10/13 at 21:33:01 Dataease [{8}]FIVE

Re:Re:Re:Re:Error using SetGlobal

Sorry, still no luck. Now I am getting

Written by Kensington 23/10/13 at 09:15:57 Dataease [{8}]FIVE

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.

Written by DataEase 23/10/13 at 09:40:57 Dataease [{8}]FIVE

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.

Written by Kensington 23/10/13 at 10:28:28 Dataease [{8}]FIVE

Re:Re:Re:Re:Re:Re:Re:Error using SetGlobal

I upgraded it to 8.0.0.1375 and it now works!

Thanks

Written by Kensington 23/10/13 at 10:32:11 Dataease [{8}]FIVE

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.

Written by Kensington 23/10/13 at 10:38:28 Dataease [{8}]FIVE

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 ;-)

Written by DataEase 23/10/13 at 18:27:25 Dataease [{8}]FIVE