Copy field problem
Alex Shaw
alex at harryscollar.com
Tue Aug 31 05:37:57 EDT 2010
Hi Jan
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..
Instead of..
copy fld 1 of card 1 of stack "teststack" to card 1 of stack "Untitled 1"
This works..
copy fld 1 of card 1 of stack "teststack"
create stack "new"
paste
hmm.. strange
regards
alex
On 31/08/10 6:30 PM, Jan Schenkel wrote:
> --- 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)
>
>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list