Set mess off
Set err mess off
Set error var hold
Set v v2 = .v1
IF hold <> 0 THEN
DIALOG 'Enter value for v1' v1 vEndKey 1
ENDIF
Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller
Available for Witango Developement
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James
Hageman
Sent: Wednesday, September 10, 2003 12:36 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Create variable on the fly
I want to be able to find out if a variable exists and if not to create
it and then pronpt the user to assign a value to it.
I thought I could do something like :
IF (IFEXIST(v1,.v1,NULL)) IS NULL THEN
DIALOG 'Enter value for v1' v1 vEndKey 1
ENDIF
But I get an error message telling me v1 doesnt exist, Right! I know.