Myron,
This sounds like choose might be better than a
dialog. That way only valid options will appear for the
user to choose from.
On my machine (CVAL('drives')) gave me the following
value: CDENs
You could use string commands to punctuate this
list.
Perhaps you could request from RDCC one of the
following additional commands:
LIST DRIVES
CHOOSE varname FROM #DRIVES
If (CVAL('drives')) returned a comma delimited list,
you could use that in a command like:
CHOOSE vDrive from #LIST (CVAL('drives'))
You could then use those results in a choose
statement.
Randy Peterson
----- Original Message -----
From: "Myron Finegold" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 03, 2002 3:55 AM
Subject: Database Backup File to Your Choice of Drive
> In my archives I found a backup file that was created in
96. Orig
> Author unknown. I've modified it as shown below. The
question I have
> is this; Using the cval function - SET VAR vDrives =
(CVAL('Drives'))
> - I can find out what drives are on a specific computer,
but how can
> I limit the user to using only a valid drive letter?
(Around line 35).
> The goal would be to have the if then statement do the
checking.
>
> Myron Finegold
>
> *(dbackup.cmd 11-3-02)
> --CMD to backup a database
> --Asks the user where to backup to
> --Creates a separate folder by the current date for the
backup
>
================================================
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/