[comp.sys.mac.hypercard] Non-User Typing into fore-ground fields

mark@pnet06.cts.com (Mark Murphy) (06/17/88)

dss@cblpn.ATT.COM (Dan Stoops) writes:

>When I go to "put" things into a fore-ground field from a script, or get the
>location of a fore-ground field from a script (ie. get the loc of field 1)
>the response is "Never heard of Bkgnd field number 1".

   Well, the solution for that is simple.  Fore-grounds, as you call them, are
cards.  Card fields or buttons need to have the adjective "card" placed before
them.  Examples:

        get the loc of field 1 - Will return the location of background field
                                 one.  If none, then an error.
        get the loc of card field 1 - Will return the location of card field
                                      one.  If none, then an error.

   Without the adjective, HT assumes you want the background field, not the
card (fore-ground?) field.  Hope this helps...

Mark Murphy, Tyrell Co.                 UUCP: {crash uunet}!pnet06!mark
Voice: (714) 491-8110                   ARPA: crash!pnet06!mark@nosc.mil
The Desktop BBS: (714) 491-1003         INET: mark@pnet06.cts.com

steve@hpiacla.HP.COM (Steve Witten) (06/18/88)

Try "put xxxxxx into card field xxxxx".  Goodman's book is not very clear about
this but the Shafer book on HyperTalk points this difference out early.


===============================================================================
Steve Witten                    steve%hpiacla@hplabs.HP.COM
Industrial Applications Center  {ucbvax, hplabs}!hpda!hpdsla!hpiacla!steve
Hewlett-Packard Co.             steve@hpiacla

"...I feel in touch with the modern world!..."  --J. Richman