T
Tom Ogilvy
You must be thinking of some other language.
If maxlen isn't declared, it is a variant and has a value of empty.
msgbox anyvariable
will work even if anyvariable is variant and has had no assignment.
for the comparison example
? 3 > empytvariable
True
the empty variable is coerced to zero.
If declared long or any other numeric variable like integer, single or
double, it is initialized automatically to zero. (of course it is always
good to declare your variable types - what I offered was a code snippet).
Since you are using a two column list for the combobox, you would get a two
column array. So make the necessary adjustments.
If maxlen isn't declared, it is a variant and has a value of empty.
msgbox anyvariable
will work even if anyvariable is variant and has had no assignment.
for the comparison example
? 3 > empytvariable
True
the empty variable is coerced to zero.
If declared long or any other numeric variable like integer, single or
double, it is initialized automatically to zero. (of course it is always
good to declare your variable types - what I offered was a code snippet).
Since you are using a two column list for the combobox, you would get a two
column array. So make the necessary adjustments.