I use the CHOOSE command extensively and I do not pre-defined the variable;
however I always use the same name, vchoose (surprise!)  which gets cleared
at the end of the program. To this date, I have not had any problems with
the variable being truncated.
For the record, page 46 of the 5.5 (Windows) manual states: "Do not
predefine the variable; the CHOOSE command defines the variable with its
proper data type"

Javier Valencia, PE
President
Valencia Technology Group, L.L.C.
14315 S. Twilight Ln., Suite #14
Olathe, KS  66062-4571
(913)829-0888
(913)649-2904 FAX

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Alastair Burr
Sent: Wednesday, June 26, 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Q. about CHOOSE command

I second that, Tom, and I think that somewhere the documentation states that
the choose variable is ALWAYS text and, since changing to RBW a year ago, I
have set three TEXT variables that I use throughout my apps which are never
cleared but often set to null or a particular value immediately before use:

vResponse & vEndKey for use with DIALOG commands, and
vChoose for use with (surprise, surprise) CHOOSE commands.

These variables are then used to set other variables as needed when the type
can be changed as well if required.

To date - as far as I know - this has not caused me any problems and has
simplified the way apps are written.

Regards,
Alastair.


----- Original Message -----
From: "Tom Grimshaw" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 2:27 PM
Subject: Re: Q. about CHOOSE command


> Well that's one place the manual and I disagree for the very reason
> Ron mentions.   As the var from the CHOOSE cmd is often a non-text
> value I make it a habit to always set the var to TEXT = NULL immediately
> prior to the CHOOSE.
>
> At 12:59 26/06/02 -0700, you wrote:
> >Has the CHOOSE variable been predefined?
> >The 5.5 ref manual says: "Do not predefine the variable: the CHOOSE
command
> >defines the variable with its proper data type."
> >If the variable existed, maybe that would confuse things.
>
> Warmest regards,
>
>
> Tom Grimshaw
> coy:    Just For You Software
> tel:    612 9552 3311
> fax:    612 9566 2164
> mobile: 0414 675 903
>
> post:   PO Box 470  Glebe  NSW  2037  Australia
> street: 3/66 Wentworth Park Rd  Glebe  NSW  2037
>
> email:  [EMAIL PROTECTED]
> web: www.just4usoftware.com.au
>
> "... the control of impulse -- is the first principle of civilization."--
> Will Durant,
> Pulitzer Prize winning philosopher, writer and historian
>
> the most needed product in the world can be found at
> www.thewaytohappiness.org
>
> This email and any files transmitted with it are confidential to the
> intended recipient and may be privileged. If you have received this email
> inadvertently or you are not the intended recipient, you may not
> disseminate, distribute, copy or in any way rely on it. Further, you
should
> notify the sender immediately and delete the email from your computer.
> Whilst we have taken precautions to alert us to the presence of computer
> viruses, we cannot guarantee that this email and any files transmitted
with
> it are free from such viruses.
>
> ================================================
> TO SEE MESSAGE POSTING GUIDELINES:
> Send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: INTRO rbase-l
> ================================================
> TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: UNSUBSCRIBE rbase-l
> ================================================
> TO SEARCH ARCHIVES:
> http://www.mail-archive.com/rbase-l%40sonetmail.com/

================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to