Red dot in the Script Editor [Solved]
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Red dot in the Script Editor [Solved]
Hello,
I am new to LiveCode but i do many years of HyperCard.
For now i do my initiation making a perpetual calendar.
And i got some bug. I dont know if do something wrong or not.
I got a bug with this : add 1 to X. The script editor told with a red dot that its a mistake in this line.
add 1 to X is pretty simple line. It's not suppose to have a mistake here.
What do you think. can i do something to avoid this bad situation???
I think something is wrong with the script editor but can i do something to help myself.
I erase all the preference file in the library and i reinstall livecode like that tow times. Whit a whitout update and i also create a new stack with the same script.
I just dont know what to do now. I really really like LiveCode and i really want to do real nice thing with it.
I am new to LiveCode but i do many years of HyperCard.
For now i do my initiation making a perpetual calendar.
And i got some bug. I dont know if do something wrong or not.
I got a bug with this : add 1 to X. The script editor told with a red dot that its a mistake in this line.
add 1 to X is pretty simple line. It's not suppose to have a mistake here.
What do you think. can i do something to avoid this bad situation???
I think something is wrong with the script editor but can i do something to help myself.
I erase all the preference file in the library and i reinstall livecode like that tow times. Whit a whitout update and i also create a new stack with the same script.
I just dont know what to do now. I really really like LiveCode and i really want to do real nice thing with it.
Re: Red dot in the Script Editor [Solved]
Ok Thanks God
I found the answer in the LiveCode Blog.
I just have to make a declaration of the variable like that : Local X
Thats it. But it's new for me. I was not remember this.
I found the answer in the LiveCode Blog.
I just have to make a declaration of the variable like that : Local X
Thats it. But it's new for me. I was not remember this.
Re: Red dot in the Script Editor [Solved]
Hi,
That is odd because
That runs fine here, no errors.
Simon
That is odd because
Code: Select all
on mouseUp
repeat 100
add 1 to x
put x
end repeat
end mouseUp
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: Red dot in the Script Editor [Solved]
Hi Baltazard
I'm wondering if you have 'Strict Compilation Mode' set - this requires that all variables be declared before they can be used (amongst other things). If you open your LiveCode preferences dialog box and then navigate to the 'Script Editor' pane, do you have the 'Strict Compilation Mode' box checked or unchecked?
Dave
I'm wondering if you have 'Strict Compilation Mode' set - this requires that all variables be declared before they can be used (amongst other things). If you open your LiveCode preferences dialog box and then navigate to the 'Script Editor' pane, do you have the 'Strict Compilation Mode' box checked or unchecked?
Dave
"...this is not the code you are looking for..."
Re: Red dot in the Script Editor [Solved]
Yes but my script is much more longer. Two tree pages.Simon wrote:Hi,
That is odd becauseThat runs fine here, no errors.Code: Select all
on mouseUp repeat 100 add 1 to x put x end repeat end mouseUp
Simon
But honestly i really like this feature.
Re: Red dot in the Script Editor [Solved]
But did you solve the problem by examining what Dave mentioned? He is almost certainly correct about the strict compilation mode.
Craig newman
Craig newman
Re: Red dot in the Script Editor [Solved]
I just use the local command
local X
That's it
And i also use strict preferences. I prefer that. For me it's better when it's strict.
local X
That's it
And i also use strict preferences. I prefer that. For me it's better when it's strict.