ComboBox listwidth to match text in list

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top