Thanks Albert That looks smarter than the solution I found Gunnar Ekblad
-----Ursprungligt meddelande----- Fr�n: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] F�r Albert Berry Skickat: den 17 augusti 2004 23:16 Till: RBG7-L Mailing List �mne: [RBG7-L] - Re: Cheking for existans of a variable Gunnar, my friend, have you tried: SET VAR vdatum = (IFNULL(.vdatum,(.#DATE - 2),.vdatum)) --- Gunnar Ekblad <[EMAIL PROTECTED]> wrote: > In the past, prior to 7.1 (DOS and Windows) I used to have this > construction to check the existans of variable. > > IF vdatum IS NULL THEN > SET V vdatum = (.#DATE - 2) > ENDIF > > That way I could default my variable to the existing value, or if there > was no value to whatever I decide to. > > How do I go about to the same thing in 7.1? > > Gunnar Ekblad > > ===== Albert Berry Management Consultant RR2 - 1252 Ponderosa Drive Sparwood BC, V0B 2G2 Canada (250) 425-5806 (250) 425-7259 (708) 575-3952 (fax) [EMAIL PROTECTED]
