Saturday, January 16, 2010

How do you pass an MSFlexGrid control to a method in a class as a parameter?

Define the method with a parameter type ';control'; or ';object'; being passed to it, and use that variable (parameter) to pass the flexgrid control/object.How do you pass an MSFlexGrid control to a method in a class as a parameter?
In your method defintion, put


YourMethod(ByRef flexGrid as MSFlexGrid)





or whatever the actually object name is or just





YourMethod(ByRef obj as Object)





This is VB syntax.





C++ would use a pointer to an object.

No comments:

Post a Comment