Message 1 of 8
ListBoxes and Arrays

Not applicable
06-20-2003
05:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
OK this is strange.
I started a project in VBA to easily design a form to interact with IV.
I then moved it all to VB and the form came in as a Designer (?) not a form.
Seems to work fine however.
In the form code I have a 2D array arProps(0 to x, 0 to x)
To load a 2 column listbox with items from the array I simply use:
ListBox2.List = arProps() which works great
So I now add a new form (which is under the Form area now) and I use a
similar 2D array arProps2(0 to x, 0 to x)
but when I try to load a listbox in this form via
ListBOx3.List = arProps2()
I get a Argument not optional error on compile...
I'm really confused now...
--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
"...and quit driving 50MPH in the left lane!!!"
-----------------------------------------------------------------------
I started a project in VBA to easily design a form to interact with IV.
I then moved it all to VB and the form came in as a Designer (?) not a form.
Seems to work fine however.
In the form code I have a 2D array arProps(0 to x, 0 to x)
To load a 2 column listbox with items from the array I simply use:
ListBox2.List = arProps() which works great
So I now add a new form (which is under the Form area now) and I use a
similar 2D array arProps2(0 to x, 0 to x)
but when I try to load a listbox in this form via
ListBOx3.List = arProps2()
I get a Argument not optional error on compile...
I'm really confused now...
--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
"...and quit driving 50MPH in the left lane!!!"
-----------------------------------------------------------------------