PB 12.5.1
I am testing some things and have come across an interesting issue. I have the following code that seems to work but the returned result set is chopped. The messageBox in GetReportData returns 118 but when the calling object gets it the variable is blank.
Code in thread:
GetReportData(ref any adata) return integer
Integer liRet = 0
IF idsThread.RowCount() > 0 THEN
liRet = 1
aData = idsThread.Object.Data
MessageBox("Upper", UpperBound(aData)) // This has values!
END IF
RETURN liRet
Code in main:
Any lAny
luThread.GetReportData(lAny) // lAny is blank!
Can you not pass the Data from a datastore in a thread to the main thread?
Thanks,
Chris Craft