Re: The PoddyShein credit management statement crashing problem
UNILYNX
9-7-18
The problem has been solved.

The corrected Hal code looks as follows:-

// VER: 5.4 080912
// UST: 23.09.2008 (update)
// VER: 5.3 071214
// UST: 10.01.2008


global
procedure DoRunCMForm(record RcVc Dummyr,record RcVc RepSpec)
begin

    string 30 formcode;
    boolean testf;

    formcode = "INVOICE";

    LogText(0,"Before OpenForm 0");
   
//    FormLabelGrid(1,1,1,1);
    LogText(0,"Before OpenForm 1");
    testf = (OpenForm(formcode)==true);

CloseForm;
    LogText(0,"After OpenForm: " & testf);

return;
end;


global
procedure RunCMForm(record RcVc RepSpec)
BEGIN
boolean tmpf;


tmpf = PrintDocument(RepSpec,"RunCMForm",false);

LBH_StockMovLabelForm:;

RETURN;
END;




So the procedure with openform() in it has to be called via PrintDocument()

tmpf = PrintDocument(RepSpec,"RunCMForm",false);
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
Lilian Wanyoike
Hi, Spinners & Spinners are currently on version 8.5 2022-02-02 (build 85420830). they have been experiencing a network lag. Action taken: - Checked logs and confirmed that they had not whiteli...
14:13 30 Aug 2024
Lilian Wanyoike
Hi, Spinners & Spinners are currently on version 8.5 2022-02-02 (build 85420830). they have been experiencing a network lag. Action taken: - Checked logs and confirmed that they had not whiteli...
14:13 30 Aug 2024