I can't send a message with a field to another handler
dunbarx at aol.com
dunbarx at aol.com
Fri Aug 3 00:33:06 EDT 2012
Try putting parentheses around the card identifier:
fld "yourField" of (card "yourCard")
HC used to be finicky about card identifiers, frequently concatenating any following terms. Lock this sort of thing out by explicitly corralling the card name or whatever.
Or I am missing something...
Craig Newman
-----Original Message-----
From: Dr. Hawkins <dochawk at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Thu, Aug 2, 2012 6:49 pm
Subject: Re: I can't send a message with a field to another handler
On Thu, Aug 2, 2012 at 1:34 PM, <dunbarx at aol.com> wrote:
> If you do not specify a full pathname (or LC-type "pathname"), LC will assume
you are on the same card.
>
>
> So just change your code to ...fld tgt of cd "yourcard" [of stack
"otherStack"]
that works when I spell it out (which is what I did when using
straight arithmetic instead of formatting)
The problem is passing the target field as a variable; livecode
handles tgt containing "myfield" just fine, but I haven't found a way
to send it "myfield of that other card" without it looking for a field
on the same card with that name.
--
The Hawkins Law Firm
Richard E. Hawkins, Esq.
(702) 508-8462
HawkinsLawFirm at gmail.com
3025 S. Maryland Parkway
Suite A
Las Vegas, NV 89109
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list