You should use the alias ThisObject
instead of the obsolete ThisForm
in the form module
Var myParam;
Function test() Export
// code here
EndFunction
ThisForm.myParam = ThisForm.test();
Notification = New NotifyDescription("ShowQueryEnding", ThisForm);
ShowQuery(Notification, QuestionText, ...);
Var myParam;
Function test() Export
// code here
EndFunction
ThisObject.myParam = ThisObject.test();
Notification = New NotifyDescription("ShowQueryEnding", ThisObject);
ShowQuery(Notification, QuestionText, ...);