Page 1 of 1

My RunRev is corrupted ?

Posted: Sat Dec 27, 2008 7:20 pm
by trevix
On OSX 10.5 and Rev 3 after several debugging cycle I've got a problem I cannot resolve (I tried also to download and re-install Revolution from scratch with no result and there there are no problems on another Mac of mine)

Before: I was trying to use the "DefaultFolder" in a script without success.
After a Rev lock, after relaunch, I could not insert nowhere a red breakpoint dot (resolved making a new copy of the stack)
Then I found out that a simple script like this, on a clean empty stack (nothing except a button):

Code: Select all

on mouseUp
   put "asino" into Cosa
end mouseUp
gets this error:
button "Button": compilation error at line 2 (Chunk: can't create a variable with that name (explicitVariables?)) near "Cosa", char 16
- I checked the explicitVariables and it is set to false.
- I restarted the Mac
- I trashed the "revpreferences.rev" file from preferences
Is there some hidden Revolution file that is making the problem?

Thanks for any help
Trevix

Posted: Sun Dec 28, 2008 3:52 pm
by malte
Hi Trevix,

this looks like a set preference for the script editor. Open the preferences->script editor->Strict compilation mode

check this and uncheck afterwards

Close Preferences.

The script editor can set the explicitvars temporary to check if the script compiles with "simulated" explicit vars. (Even though I recommend to leave that on and declare variables + quote literals, that might be a matter of taste though)

Cheers,

Malte

Posted: Mon Dec 29, 2008 3:53 pm
by trevix
Thank you for the as usual prompt answer.
Every thing is fine now...