Let say I define an dynamic array
Dim my() as string
Give this to a procedure
Call myProcedure(my)
Sub myProcedure(byref InputStr() as string)
Redim InputStr(1 to 2)
ect...
InputStr(1) ="blabla"
InputStr(2) ="blabla2"
end sub
how can I check the bound of "my" without getting error
in the case that "my" has not been modified by the procedure
and is still empty?
1-function IsNull don't say anything
2-Lbound give an error "subscript out of range"
I know I can use "On Error Go to" or whatever... but don't like it.
There is sureley of function to do this
thanks
Dim my() as string
Give this to a procedure
Call myProcedure(my)
Sub myProcedure(byref InputStr() as string)
Redim InputStr(1 to 2)
ect...
InputStr(1) ="blabla"
InputStr(2) ="blabla2"
end sub
how can I check the bound of "my" without getting error
in the case that "my" has not been modified by the procedure
and is still empty?
1-function IsNull don't say anything
2-Lbound give an error "subscript out of range"
I know I can use "On Error Go to" or whatever... but don't like it.
There is sureley of function to do this
thanks