Quote:(Jan Theo Bakker) writes:
Does anyone know a fast way to determine whether an element of a
dynamic array does NOT exist? IsAssigned and Not IsAssigned are not
enough I think, because no difference is made between the presence
of an element and the contents of the element. Also, combinations with
isblank etc. don't work. They result in a cancel/debug BECAUSE the
element does not exist. Only thing I think of is a FOR-loop over the
array.
=========================
ISASSIGNED & ISBLANK are it, but can be used effectively. ISASSIGNED will
return false if the element has not been assigned at all (does not exist),
but will return True if the element exists but is blank. ISBLANK can then
be used to determine the status of its contents -- I do it all the time.
So you might use:
IF ISASSIGNED(X["This One"]) AND NOT ISBLANK(X["This One"])
THEN DO_THIS_THING
ELSE
IF ISASSIGNED(X["This One"])
THEN DO_THAT_THING
ENDIF
DR