Copy field problem

Jan Schenkel janschenkel at yahoo.com
Tue Aug 31 04:30:28 EDT 2010


--- On Mon, 8/30/10, Alex Shaw <alex at harryscollar.com> wrote:
>  Hi
> 
> Having a annoying problem with copying a field from a
> (specific) stack.
> 
> See below for basic test stack with a single field with
> some content..
> http://www.harryscollar.com/teststack.rev
> 
> This unusual stack was initially created via code, stripped
> back of unneeded controls and saved.
> 
> When I load this stack into the IDE, create a new stack and
> run the following command at the message box..
> copy fld 1 of card 1 of stack "teststack" to card 1 of
> stack "Untitled 1"
> 
> .. I get a blank field on the new stack!
> 
> Yet when I copy and paste the field onto another new stack
> and try copying, it works and copies the contents too. It
> also works if I manually recreate a test stack with another
> test field.
> 
> Very strange because any new field created on
> "teststack.rev" will now copy over to any other stacks with
> empty contents.
> 
> I've checked relevant properties but nothing seems out of
> place.
> 
> Argh! Starting to pull out my hair over this problem.
> 
> regards
> alex
> 

It worked for me, once i set the 'sharedText' property of the field to true. My guess is that the copy command assumes that if this is false, you really didn't want the original text :-)

HTH,

Jan Schenkel.
=====
Quartam Reports & PDF Library for Revolution
www.quartam.com

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)



      




More information about the use-livecode mailing list