To all,
Further on my post of a few minutes ago.  I checked the HTML help
that came with ver 6.5+ for DOS and found the following:
"Variables in the CHOOSE Command
R:BASE waits for a menu selection to be entered from the keyboard,
and stores the keyboard entry in a designated variable that can
be referenced in subsequent processing. 

Assigning Data Types
Variables in a bar with a pull-down, check-box, pop-up, sort check-box,
or WHERE builder menu are automatically defined as a TEXT data
type and filled with the exact wording of the menu choice. Variables
in vertical menus are automatically defined as an INTEGER data
type and contain the menu-option number. Do not use a variable
in a CHOOSE command if its data type is already assigned." 

So it seems that CHOOSE command can assign a TEXT or INTEGER datatype
to the CHOOSE variable.  However it is my opinion that there is
only one case (vertical Menu) for all of the options for the CHOOSE
command that will return an INTEGER datatype.  In all other cases
the datatype returned is TEXT.  I like Alastair use several predefined
variables for all processing within an application.  I one ever
looks at the application file generate by Application Express
so did the RBase programmer who created Application Express. 



-- 
Jim Bentley
American Celiac Society
[EMAIL PROTECTED] - email
(973) 325-8837 voice
(973) 669-8808 Fax


---- "Alastair Burr" <[EMAIL PROTECTED]> wrote:
> 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