change label name
Dan Shafer
revdan at danshafer.com
Thu Feb 17 18:45:49 EST 2005
Just a SWAG and not tested, but have you tried changing the offending
line to:
set the label of field labelName of stack "Armbase" to the name of
field labelName of stack "Armbase"?
Since you've successfully changed its name, you should be able to use
this to change the label, eh?
Dan
On Feb 17, 2005, at 1:39 PM, Bob Hartley wrote:
> Hi All.
> I have a button that copies a label from one stack to another stack.
>
> the code changes the name OK but I want to change the visible text in
> the label.
>
> the code is
> on mouseUp
> global tFileName
> copy field "LabelName" of stack "Armbase" to card 1 of stack
> tFileName
> set the name of field LabelName of stack tFileName to field
> LabelNewName of stack "Armbase"
> --the above is OK and copies the label and changes its name to the
> contents of a field
> set the label of field LabelName of stack tFileName to field
> LabelNewName of stack "Armbase"
> --this one above generates an error
> end mouseUp
>
> I tried using the words contents and name etc in thelast line but
> without any luck.
>
> Any ideas. I'm sure this is simple.
>
> cheers
> bob
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list