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 <[email protected]>
To: How to use LiveCode <[email protected]>
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,  <[email protected]> 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
[email protected]
3025 S. Maryland Parkway
Suite A
Las Vegas, NV  89109

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to