Copy...duh...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Copy...duh...
It's redicuous how much time we spend in the simple stuff before we ask help.
I cannot get a command to copy the contents of a field to work. This is the code I'm using as per the dictionary:
copy word 1 to -1 of field "fldLabelAddress" of card "crdRecordSummary" of this stack
What am I missing?
Thanks,
I cannot get a command to copy the contents of a field to work. This is the code I'm using as per the dictionary:
copy word 1 to -1 of field "fldLabelAddress" of card "crdRecordSummary" of this stack
What am I missing?
Thanks,
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
It is surprising how often people write "it doesn't work" and expect others to know what is going on. Please provide all information you can possibly provide. In cases like these, you really need to provide error messages, the result, and strange unexpected behaviour.
Best,
Mark
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
What's going on, errors and such
button script that initiates the action:
on mouseUp
set blendLevel of me to 0
send copyAddressToClipboard to stack "stkAddressSummary"
end mouseUp
copyAddressToClipboard is a stack script in the same stack:
on copyAddressToClipboard
copy word 1 to -1 of field "fldLabelAddress" of card "crdRecordSummary" of stack "stkAddressSummary"
end copyAddressToClipboard
No syntax error is noted. No error is thrown during execution. It just doesn't put anything into the clipboard.
on mouseUp
set blendLevel of me to 0
send copyAddressToClipboard to stack "stkAddressSummary"
end mouseUp
copyAddressToClipboard is a stack script in the same stack:
on copyAddressToClipboard
copy word 1 to -1 of field "fldLabelAddress" of card "crdRecordSummary" of stack "stkAddressSummary"
end copyAddressToClipboard
No syntax error is noted. No error is thrown during execution. It just doesn't put anything into the clipboard.
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
Field location
The field is on the same card as the button.
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
Thanks Karl
set the clipboarddata["text"] works great. That is what I started out looking for, but I didn't understand the explanation in the dictionary, so passed over it.
Thanks for the clarification.
Thanks for the clarification.
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013