Hi Wendy,

If you remove @AM, @VM, and spaces by changing them to null values with
the CONVERT function, then if the variable has anything left in it, you
have a non-empty value.

JUNK=TEST.1

CONVERT @AM:@VM:" " TO "" IN JUNK
IF LEN(JUNK) GT 0 THEN 
        PRINT "TEST.1 IS NOT 'EMPTY'"
END ELSE
        PRINT "TEST.1 IS 'EMPTY'"
END

Just be sure to use a "junk" variable and don't CONVERT the actual
variable.

HTH,
BobW
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wendy Smoak
Sent: Wednesday, February 01, 2006 9:19 AM
To: [email protected]
Subject: [U2] Is a dynamic array "empty" or not?

I'm probably missing something obvious here...
What can I use to evaluate the "emptiness" of these arrays, so that 1
and 2 are considered empty and 3 is not?

   TEST.1 = @VM:@AM:@VM:@VM:@AM:@AM
   TEST.2 = @VM:@AM:' ':@VM:'  ':@VM:@AM:'   ':@AM
   TEST.3 = @VM:@AM:' ':@VM:'zzz':@VM:@AM:'abc':@AM

Thanks!
Wendy Smoak
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to