FoxInCloud
wllan() and sficServer.Destroy()
Gravatar is a globally recognized avatar based on your email address. wllan() and sficServer.Destroy()
  Paul
  All
  Jan 30, 2019 @ 03:50pm

Hi,

I want to run a cleanup procedure from sficSets.Destroy() that is common to both web and lan, with some code only running in lan mode.
However, wlLan() and wlWeb() no longer work at this point because m.goWCserver has been cleared.

Does FiC provide another option for determining lan vs web in this situation?

(I know I could pass a parameter from the Destroy method or chop the cleanup code into different parts to handle this, but I'm wondering if you have a built-in way)

Thanks
Paul

Gravatar is a globally recognized avatar based on your email address. re: wllan() and sficServer.Destroy()
  FoxInCloud Support - Thierry N.
  Paul
  Jan 31, 2019 @ 12:03am

As documented in xxxSets.prg,

* {en} HINT
* {en} Your code can take advantage of the following properties:
#if .F.
this.wlWeb && = !this.wlLAN && {en} application runs in Web mode {fr} l'application fonctionne en mode Web
this.wlLAN && = !this.wlWeb && {en} application runs in LAN (desktop) mode {fr} l'application fonctionne en mode LAN (desktop)
this.lDevMode && {en} application runs in development mode {fr} l'application fonctionne en mode développement
this.lAutomation && {en} App works in COM mode (this.wlWeb only) {fr} L'application fonctionne en mode COM (si this.wlWeb)
#endIf
© 1996-2024