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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.