Page 2 of 2

Re: Pass a class to a variable

Posted: Wednesday 7th December 2022 6:14pm
by BruceSteers
I assume you have studied the wiki
http://gambaswiki.org/wiki/comp/gb/class
http://gambaswiki.org/wiki/comp/gb/classes

Things like

Class.Name
Object.Parent

Surely if your form manually loads a specific class it can make a note of the class name and store it somewhere that the other form can see?

Re: Pass a class to a variable

Posted: Saturday 10th December 2022 9:12pm
by Ham13
I tried a new tack. The object is to get a sequential list of data records so that the record's position in the list is equivalent to the record number. The class is the method used to generate this list. So why not make a collection from the list and pass the collection to the other form? In that way the list no longer needs the class to be used on the other form. After some tinkering with the code I got it working. Maybe unconventional but, it works for now.

I'm going to try Cedric's approach to sending the collection over using a function an see what I can do with that idea.

Regards,

Marty