Newsgroups: comp.sys.mac.hypercard
Path: utzoo!utgpu!watserv1!psych
From: psych@watserv1.waterloo.edu (R. Crispin - Psychology)
Subject: Re: OK/Cancel
Message-ID: <1991Feb28.130603.27879@watserv1.waterloo.edu>
Organization: University of Waterloo
References: <22964@hydra.gatech.EDU>
Date: Thu, 28 Feb 1991 13:06:03 GMT
Lines: 19

In article <22964@hydra.gatech.EDU> gt7491a@prism.gatech.EDU (gt7491a SCHWARTZ,MORRIS JACOBO) writes:
>Is there a way to tell the difference between the "OK" button being
>clicked with no text, and the "Cancel" button being clicked, on
>the ask command?
>As far as I can tell the Cancel button makes 'it' empty, but this is
>also the case if the user doesn't type anything, and just clicks OK.
>Thanks, 
>Morris

In Hypercard 2.0 (I don't know about 1.x) if you check "the result" after
the response you can find out if cancel was selected. If it is blank and OK was
used then both it and the result will be empty. If cancel is used then it is empty
put the result contains cancel.


Richard Crispin              Phone:    (519)888-4781
Dept. of Psychology          EMail:    psych@watdcs.uwaterloo.ca 
University of Waterloo                 psych@watserv1.uwaterloo.ca 
Waterloo, Ont.   Canada   N2L 3G1
