FoxInCloud
QueryUnload() and return to the FormCallBack() ?
Gravatar is a globally recognized avatar based on your email address. QueryUnload() and return to the FormCallBack() ?
  Gilles Lajot-Sarthou
  All
  Nov 14, 2019 @ 08:35am

Bonjour Thierry

Today closing a child form other than Thisform.Release (), does not return in the callback () method of the calling object. Is there a structural reason that prohibits when closing a child form by its QueryUnload () method or its native close () button, that a 'callback' is executed in the calling form without in the QueryUnload() method use a THISFORM.wMessageBox('Queryunloadcallback',....)?

Amicalement Gilles

Gravatar is a globally recognized avatar based on your email address. re: QueryUnload() and return to the FormCallBack() ?
  FoxInCloud Support - Thierry N.
  Gilles Lajot-Sarthou
  Nov 15, 2019 @ 02:38am

Hi Gilles,

I think we have a bug here: if .queryUnload() returns .T. without invoking .queryUnloadCallback, the form does not close as it should.

Nota: in desktop mode, the form closes unless you code nodefault anywhere in the .queryUnload() method. In any case, you also need to call dodefault()

Please try this fix:

modify command awServer.prg && line 14,221

&& replace
= .T.;
 and m.tcMethod == Proper('QueryUnloadCallback');
 and lTrue(m.luResult);
 and this.cScriptJSAdd_(m.toForm.wcFormCloseScript(,, .T.));
 and .T.

&& by
= .T.;
 and (m.tcMethod == Proper('QueryUnload') or m.tcMethod == Proper('QueryUnloadCallback'));
 and lTrue(m.luResult);
 and this.cScriptJSAdd_(m.toForm.wcFormCloseScript(,, .T.));
 and .T.
Gravatar is a globally recognized avatar based on your email address. re: QueryUnload() and return to the FormCallBack() ?
  Gilles Lajot-Sarthou
  FoxInCloud Support - Thierry N.
  Nov 15, 2019 @ 03:05am

Merci Thierry,

I will try to use this patch netx week..

Amicalement

Gravatar is a globally recognized avatar based on your email address. re: QueryUnload() and return to the FormCallBack() ?
  Gilles Lajot-Sarthou
  Gilles Lajot-Sarthou
  Nov 17, 2019 @ 02:41am

Bonjour Thierry

it's ok with using and (m.tcMethod == Proper('QueryUnload') or m.tcMethod == Proper('QueryUnloadCallback'));

Amicalement

Gravatar is a globally recognized avatar based on your email address. re: QueryUnload() and return to the FormCallBack() ?
  FoxInCloud Support - Thierry N.
  Gilles Lajot-Sarthou
  Nov 17, 2019 @ 02:45am

Thanks for the feedback! Issue fixed

© 1996-2019