teriibi wrote: ↑Tue Feb 13, 2018 1:31 pm
I ll make sure fields are using "".
Well, not just fields, any object, buttons, fields, players, images, etc. For a (relatively) long time, I was writing them as you did here, despite seeing them all over the place with quotes around the name, because it seemed to work.
The problem I think is that Lc's auto-magic resolution of what you type could run you afoul if your not specific, so it may take your object name and turn it into a variable, for instance. The engine also has to put in more time I think it was explained to me, tracking it down to see if it's guessing is correct? It was something like that.
*Edit - I found that explanation I was talking about -
jacque wrote: ↑Sat Mar 04, 2017 9:03 pm
I haven't ever seen a problem with object names like you describe, so I'm not sure what's going on there. I don't use the same conventions though, so you might try changing the prefixes to see if that matters.
All object names should be enclosed in double quotes. If they aren't, LC will do its best to see if there is an object with that name, but it introduces ambiguity and sometimes it will fail. If there are no quotes, the engine has to scan every control looking for a match, which is slower. But more importantly, if an object name is a reserved word you will get unexpected results.
Rule of thumb is to always quote literals and control names in scripts.
... so, it is just a better habit, as well as helping the readability of your code, to quote object names, i.e.
button "Ok", field "myField", player "hookeyLau", etc.
I couldnt use the "replace quote.." you mentioned above yet
Do you think it will just clean symbols only ", and not full words ?
I tested it the way I wrote it, here are the before and after shots.

- Before
- Selection_003.png (6.17 KiB) Viewed 9726 times

- After
- Selection_004.png (23.72 KiB) Viewed 9726 times