On Dec 7, 2006, at 4:14 PM, JC wrote:
I had some code that tested to see if an array was empty and (as
far as I
can tell) worked fine.
u=UBound(xArray)
if u>-1 then
for i=0 to u
xPop.AddRow xArray(i)
next
end
Well xArray is being passed to this method and if it's "nil" this
doesn't
work. Anyway it appears that I can't test for nil because the
array isn't
an object. So these doesn't work:
if xArray is nil then
if xArray = nil then
Etc etc...
What am I missing here? Something obvious I'm sure...
Arrays are not objects. But certainly one can end up with a nil
array, so perhaps you should file a feature request to be able to
compare an array reference to Nil.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>