Hi Stuart,
where do you implement?
Result := _VFP.SetVar('llPrinted', SYS(2040)="2")
the line after report form ?
Result is .NULL., because _VFP.SetVar returns .NULL., so there is no need the ask for it's return
AFAIK You can not ask SYS(2040) after the report
Agnes
>Tried this but value returned is null
>
>
>
>set reportbehavior 80
>
>llPrinted := .F.
>
>report form myreport to printer prompt preview
>
>Result := _VFP.SetVar('llPrinted', SYS(2040)="2")
>
>
>
>
>Any other ideas
>
>Anges, Could not get your code to work either
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]