Re: ReadFirstMain
David Delač
9-9-20
Hello Aldevinas,

You can usually use this to check if record consists of data or not.

Example:

procedure TestProcedure(record MailVc Mailr)
begin


if (ReadFirstMain(Mailr,0,true)==false) then begin
goto LTestProcedure;

end;

// do something

LTestProcedure:;
return;
end;

What this function does is that it receives MailVc as a parameter and then checks if there is some data in it. Since we are not trying to reload MailVc but rather just check if there is something in it, we use index '0'. This would return TRUE if there is some data and FALSE if MailVc is empty.

I hope this is clear, let me know if I can assist you with anything else.

Best Regards,
David D.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Piotr Wycichowski
Thanks Gatis, anyway it seems to be reported as bug instead of wish because now it depends on who created task for whom, am I right? /Piotr W....
14:39 15 May 2024
Aldevinas Katkus
Actually a new version of this bug is SL>>Reports>>Periodic customer statement "accumulates" amounts Not sure why it was duplicated, I clicked "submit"only once....
08:09 10 May 2024