Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [V8i VBA] Passing Listbox reference to class, different to a module?

$
0
0

[quote user="Jon Summers"]

Use Debug.Assert to verify that things are the way you think they ought to be...

1
Debug.Assert NotLBox.List(C, 3) IsNothing

[/quote]

Afternoon Jon

For C = LBound(CurrArray, 2) To UBound(CurrArray, 2)
    For R = LBound(CurrArray, 1) To UBound(CurrArray, 1)
    Debug.Assert Not LBox.List(C, 3) Is Nothing

Using the above now displays the error 424 Object Required error so I have confirmation that the listbox object reference is not being passed for whatever reason.

Is it possible that I need to use a property to access the listbox instead? I have attempted adding similar properties that I have in other classes for working with listboxes/userform but it did not solve the issue, though it is possible that I made a mistake somewhere doing it.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>