Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Record type as parameter (2 replies)

$
0
0
Hi all

I have, by example, a record type populated with the values returned by a query.
recLandlord is a Record of Landlord

recLandlord = arrLandlord[TableSelect(tbl_arrLandlord)]
I can send this as a parameter to a report, window and even an internal window when using
ChangeSourceWindow(InternalWindow1,IW_LandlordDetail,recLandlord)
However if I send it as a parameter when adding a Dynamic Tab it fails.

No compilation errors are generated but the receiving 'Record', whether set as dynamic or assigned to a file, is always Null.
Trying to process the receiving 'Record' generates an 'element was not allocated' error

I can overcome the issue by using global variables but this is a bit of a pain.

So is it me or an oversight on behalf of PCS for a variable type that is very useful.

Viewing all articles
Browse latest Browse all 1914

Trending Articles



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