FoxInCloud
toHTMLgen
Gravatar is a globally recognized avatar based on your email address. toHTMLgen
  Vincent H.
  All
  Dec 23, 2019 @ 05:43am

Hi Thierry,

Just a little question: in .wcHTMLgen(), when is it necessary to test Vartype(m.toHTMLgen) ?

Thanks in advance

Gravatar is a globally recognized avatar based on your email address. re: toHTMLgen
  FoxInCloud Support - Thierry N.
  Vincent H.
  Dec 23, 2019 @ 08:46am

Hi Vincent

No, it’s always a reference to the HTML generator as awHTMLgen of awHTML.prg

Gravatar is a globally recognized avatar based on your email address. re: toHTMLgen
  Vincent H.
  FoxInCloud Support - Thierry N.
  Dec 23, 2019 @ 09:03am

OK Thierry but why have I this code (yours) in a .vcx file (wcHTMLGen) ?

=Vartype(m.toHTMLgen) == 'O' and toHTMLgen.CSScustomAdd(Textmerge([.<<this.wcID>> {width: max-content;padding: 5px 15px;}]))

Gravatar is a globally recognized avatar based on your email address. re: toHTMLgen
  FoxInCloud Support - Thierry N.
  Vincent H.
  Dec 23, 2019 @ 09:52am

Protection against a dodefault() without parameters

© 1996-2024