Hi, I'm trying to pass an object to a function so that I can use the same function multiple times.
For example, this is what I have now:
VB Code:
'In Form Call funMain(grid1) 'In Module Function funMain(optional obj) frmMain.grid1.TextMatrix(5,5) = "Hello World" End Function
I would like to change the module code to:
VB Code:
frmMain.obj.TextMatrix(5,5) = "Hello World"
and have it update whichever grid is passed to it. Is this possible in VB?
thanks,
Dimava




Reply With Quote