Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

Object.Data not returnable in thread?

$
0
0

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


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>