Time Field (Please Help)

Rob Cozens rcozens at pon.net
Tue Mar 5 07:28:00 EST 2002


>The if test should always
>be true once the message is sent to the correct object, regardless of
>being on another card. Looks like you need to send forever and cancel on
>exit.

David, et al:

If Transcript works like HyperTalk, this will not happen because "if there
is a field..." refers only to the current card, not the card containing the
control receiving the message:

I made a copy of my HC Home stack and placed the following handler in the
card script of card "User Preferences":

on testit
  if there is a card field "User Name" then put "Found It" else beep
end testit

>From the message window I type 'send "testit" to card "User Preferences"'.

If I'm on card "User Preferences", "Found It" appears in the message
window; if I'm on a different card, I get the beep.

IF it works this way in Transcript, I submit it is the best solution
because no explicit action is necessary to stop the loop when leaving the
card.

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)


More information about the use-livecode mailing list