Virtual DB, record count...

edited 9:18AM in FreeReport
Can someone explain to me where on earth do i have to have:

FreeReport:
MasterData1.datasource := [COUNTREC];

delphi:
frVariables := frmMain.ngGrid.RowCount;

I putted this code into md1 memo and script, called it from a button and nothing happens, always just 1 record shown even if i have 6. I putted it also on preview show, nothing happens... tried on so many locations and nothing...

even if i put:
frVariables := 6; //frmMain.ngGrid.RowCount;

or in freereport:
MasterData1.datasource := 6;

Nothing! Always 1 record shown and that's it.
But if i change number of records in report designer then it displays the number of records written...

So why on earth doesn't it get from the code or script?!

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.