Virtual dataset record count

Hi,

I want to set the virtual dataset record count in code.

In the Page1.OnBeforePrint, I worte code:
masterdata1.datasource:=[rowcnt];
And gave its value in Data dictionary as 6

The result popup a message:
'Invalid pointer operation'
However there came out 6 rows, it is correct, but why invalid message?

Pls give me a advice!.
Thanks!

Leave a Comment