Issue with variable named test

(FB 5.5.455)

I created a project variable named "test". I set up a value in one action into one of the script events (BeforeAction) , but i tried to access this variable in the following action (Run Script / On execute event), the variable's value is empty.

As soon as i renamed the variable into "testfr" for instance, it works normally.

Regards,

Fabien

 

 

Hi Fabien,

Thanks for your post. I can't explain this behaviour offhand, although I do recommend that you download the latest version of FinalBuilder 5.

What scripting language were you using? Did you use a local variable quantifier like 'var' or 'dim' when you set the variable? This would cause a new local scope variable to be created with the same name as your test variable.

There is actually an object available in FinalBuilder to explicitly specify that you want a FinalBuilder variable, not a script variable. The syntax is FBVariables.test (or similar.) It's not required, but it does guarantee that you don't get a local variable with the same name.

Please let us know how you go.

Regards,

Angus

thanks,
i found my mistake, i was using a “Reset Variable to default” between the 2 actions. sorry…