Copy field problem
alex at harryscollar.com
Tue Aug 31 04:37:57 CDT 2010
Yes, that worked for me too.
Fortunately, as a workaround, having 'sharedText' active for that
particular field isn't going to cause any problems in this instance but
I still think it's a bug of sorts with the 'copy' command.
Using the copy field to stack command does not work for that strange
stack (is it corrupted?) but if you just copy the field to the clipboard
then paste to destination it does work as expected!
ie. from the message box..
copy fld 1 of card 1 of stack "teststack" to card 1 of stack "Untitled 1"
copy fld 1 of card 1 of stack "teststack"
create stack "new"
On 31/08/10 6:30 PM, Jan Schenkel wrote:
> --- On Mon, 8/30/10, Alex Shaw<alex at harryscollar.com> wrote:
>> 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..
>> 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
>> Argh! Starting to pull out my hair over this problem.
> 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 :-)
> Jan Schenkel.
> Quartam Reports& PDF Library for Revolution
> "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode