I have a method, let’s call it Foo(bar as Variant).
Up to now I’ve only been passing objects (controls) as bar. These objects are of course always passed by reference.
Now I need to pass an Int8 to this method, but I still need this integer to be passed ByRef. I’m a bit out of it right now: is that even possible, and if so, how would I do it?
IF you dont want to do that the only other way I can think of it to make your own “Variant” class and then its a reference type which would probably let you do what you intend
And that class could likely be made to support easy conversions just like variants do so your code doesnt need to change a lot
but before I say this WILL 100% work I’d need to know the use case as there MAY be other alternatives or gotchas I dont know