nothing to see move along
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
nothing to see move along
nothing to see, move along.
Last edited by shawnblc on Sat Aug 30, 2014 11:42 am, edited 2 times in total.
Re: [Beginner] Copy a label, rename label, add content.
Hi Shawn,
1.
## set the name of it to fld "fldTag"
## This is already field, so:
set the name of it to "fldTag"
2. Not sure why you put the content of a field back into the same field?
If that is just a typo and you mean the OTHER field, then...
"content" sounds like the right word, but isn't
You can do this:
...
set the TEXT of fld "fldTag" to the TEXT of fld "lblAll"
...
or just:
...
put fld "lblAll" into fld "fldTag"
...
Best
Klaus
1.
## set the name of it to fld "fldTag"
## This is already field, so:
set the name of it to "fldTag"
2. Not sure why you put the content of a field back into the same field?
If that is just a typo and you mean the OTHER field, then...
"content" sounds like the right word, but isn't

You can do this:
...
set the TEXT of fld "fldTag" to the TEXT of fld "lblAll"
...
or just:
...
put fld "lblAll" into fld "fldTag"
...
Best
Klaus
Re: [Beginner] Copy a label, rename label, add content.
Thanks Klaus you put me on the right track and I got it working.
Now I'm trying to keep it going, adding to it and aligning new labels below the newly created labels (with code).
Before I ask for help I want to spend some time trying things out myself. Like right before I feel like smashing my Mac. Then I'll ask for help
Now I'm trying to keep it going, adding to it and aligning new labels below the newly created labels (with code).
Before I ask for help I want to spend some time trying things out myself. Like right before I feel like smashing my Mac. Then I'll ask for help

Re: [Beginner] Copy a label, rename label, add content.
Hi.
While you are at it, know that when you create a new field, whether by pasting a copy or actually creating a new one by script, the "last" keyword may be very useful to you:
set the label of the last field to "yourLabel"
Be careful, the last field might change if you are creating controls merrily along, and be aware that groups, alone of all objects, do not like that keyword at all.
Craig Newman
While you are at it, know that when you create a new field, whether by pasting a copy or actually creating a new one by script, the "last" keyword may be very useful to you:
set the label of the last field to "yourLabel"
Be careful, the last field might change if you are creating controls merrily along, and be aware that groups, alone of all objects, do not like that keyword at all.
Craig Newman
Re: [Beginner] Copy a label, rename label, add content.
Nothing to see.
Last edited by shawnblc on Sat Aug 30, 2014 11:37 am, edited 1 time in total.
Re: [Beginner] Copy a label, rename label, add content.
Hi Shawn,
I'm guessing you want the shape to be the same as fld AllFiles and it's position to be 3 px below.
Look up templateField in the dictionary.
Then use "create field "fldTag"" -- or whatever you are naming the new field
put fld "AllFiles" into fld "fldTag"
But then the ftp stuff is Wacked! Are you trying to append text to a file that is on a server?
At any rate the ftp is a different question entirely.
Write back with one question to solve then we can do the other.
Or... I've lost the plot entirely and you can skip this post.
Simon
errr "copy a label"???? Do you mean a field that happens to be a label?I trying to copy an existing label, rename the label and change the content.
I'm guessing you want the shape to be the same as fld AllFiles and it's position to be 3 px below.
Look up templateField in the dictionary.
Then use "create field "fldTag"" -- or whatever you are naming the new field
put fld "AllFiles" into fld "fldTag"
But then the ftp stuff is Wacked! Are you trying to append text to a file that is on a server?
At any rate the ftp is a different question entirely.
Write back with one question to solve then we can do the other.
Or... I've lost the plot entirely and you can skip this post.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: [Beginner] Copy a label, rename label, add content.
Simon wrote:Hi Shawn,errr "copy a label"???? Do you mean a field that happens to be a label?I trying to copy an existing label, rename the label and change the content.
I'm guessing you want the shape to be the same as fld AllFiles and it's position to be 3 px below.
Look up templateField in the dictionary.
Then use "create field "fldTag"" -- or whatever you are naming the new field
put fld "AllFiles" into fld "fldTag"
But then the ftp stuff is Wacked! Are you trying to append text to a file that is on a server?
At any rate the ftp is a different question entirely.
Write back with one question to solve then we can do the other.
Or... I've lost the plot entirely and you can skip this post.
Simon
I guess you didn't look at the code that is now deleted, huh? Didn't even read the first post probably. Back to my cave.
Re: nothing to see move along
Simon
Yep, pretty much ignored the code as you used "it" in an odd way.
Not sure why you deleted your post after Klaus, Craig and I tried to help you.
Now Shawn, are you pouting? I did read your full post. And I did copy your original question and answered thatshawnblc wrote: I guess you didn't look at the code that is now deleted, huh? Didn't even read the first post probably. Back to my cave.

Yep, pretty much ignored the code as you used "it" in an odd way.
Not sure why you deleted your post after Klaus, Craig and I tried to help you.
Simonshawnblc wrote:nothing to see, move along.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: [Beginner] Copy a label, rename label, add content.
Just a clarification: "Last" works in groups if you specify the group; i.e., "last field of grp 1".dunbarx wrote: be aware that groups, alone of all objects, do not like that keyword at all.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com