Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
on openCard
put "POPULATE THIS TEXT TO HELPER FIELD" into fld "LblHelper" -- NOT WORKING
put the text of fld "LblHelper" into testVar
answer testVar -- YES THIS IS WORKING
end openCard
What is wrong with field name "LblHelper"?
When I change name of it to anything else it is working where can I find dictionary of reserved words or words that I can not use for label?
Using Win 7
Last edited by antrax13 on Wed Jun 03, 2015 3:48 pm, edited 1 time in total.
I just made a test with your script and it actually works fine here on my Mac in the LC 7.05 IDE!?
No idea what is going wrong there, but you should be able to label a field "on mouseup",
since this is only a STRING, it should not cause any problems.
antrax13 wrote:Can anyone explain me why this will not set the text of the label????
Do you really want to set the LABEL of your field?
If yes, the you should actually do it!
...
set the LABEL of fld "LblHelper" to "POPULATE THIS TEXT TO HELPER FIELD"
...
I also cannot see anything wrong with your handler. And even if there were no such field, you would encounter a runtime error, not just a lack of functionality.
And are you really sure that changing the name really enables the action? That is much more odd.
1. You have 3 (THREE) fields named "LblHelper" on your card "CardLocation"!
2. The first one, where the text in your script will go into!, is layered BEHIND the black graphic "Rectangle".
3. OH BOY! My good education prohibits a harsher comment!
1. You have 3 (THREE) fields named "LblHelper" on your card "CardLocation"!
2. The first one, where the text in your script will go into!, is layered BEHIND the black graphic "Rectangle".
3. OH BOY! My good education prohibits a harsher comment!