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!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
antrax13
- Posts: 39
- Joined: Mon Jun 01, 2015 11:38 am
Post
by antrax13 » Wed Jun 03, 2015 2:36 pm
OK this is starting to be ridiculous
Can anyone explain me why this will not set the text of the label???? but it will answer it?
Code: Select all
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.
-
Klaus
- Posts: 14267
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Wed Jun 03, 2015 2:47 pm
Hi antrax,
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.
Best
Klaus
-
Klaus
- Posts: 14267
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Wed Jun 03, 2015 2:49 pm
Hi abntrax13,
on second reading:
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"
...
Best
Klaus
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10394
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Wed Jun 03, 2015 2:52 pm
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.
Craig Newman
-
Klaus
- Posts: 14267
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Wed Jun 03, 2015 2:57 pm
Hi all,
sorry, forget about the LABEL of a field, this property does not exist for FIELD objects!
Best
Klaus
-
antrax13
- Posts: 39
- Joined: Mon Jun 01, 2015 11:38 am
Post
by antrax13 » Wed Jun 03, 2015 3:11 pm
can you please open and import csv and then check if the label on card "CardLocation" has been updated?
-
Attachments
-
- Integrity.zip
- (2.25 KiB) Downloaded 184 times
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10394
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Wed Jun 03, 2015 3:11 pm
Klaus.
forget about the LABEL of a field, this property does not exist for FIELD objects!
Fields do have label properties:
Code: Select all
set the label of fld 1 to "XYZ" & random(999)
answer the label of fld 1
The contents of the label cannot be seen, but is a "container" where one might store data.
But the OP never tried to "set" the label property, he just wanted to place text into a field.
Craig
-
Klaus
- Posts: 14267
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Wed Jun 03, 2015 3:35 pm
Hi Craig,
yes, I know, I meant there is no official and usefull(meaningfull property LABEL of fields in contrary to buttons!
Best
Klaus
-
Klaus
- Posts: 14267
- Joined: Sat Apr 08, 2006 8:41 am
-
Contact:
Post
by Klaus » Wed Jun 03, 2015 3:40 pm
Hi antrax13,
I checked your stack!
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!
Best
Klaus
-
antrax13
- Posts: 39
- Joined: Mon Jun 01, 2015 11:38 am
Post
by antrax13 » Wed Jun 03, 2015 3:48 pm
Klaus wrote:Hi antrax13,
I checked your stack!
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!
Best
Klaus
Thanks