FoxInCloud
Menu compilation error
Gravatar is a globally recognized avatar based on your email address. Menu compilation error
  Paul
  All
  Dec 5, 2018 @ 08:44pm

Hi,

Error when compiling a menu, using awgenmenu.prg :
"File 'cl.prg' does not exist"

Function defbars
...
\\ PROMPT cLocalized(<<cL(m.prompt)>>)
...

This line refers to cl - I cannot find cl() anywhere.

After rebuilding my project (not the xxx project, the core project containing all source files) several times and exiting out of Web App Studio each time I finally managed to build the project successfully. I don't know if the menu is compiled properly now, I don't really care so will just ignore it for the moment.

Thanks.
Paul

Gravatar is a globally recognized avatar based on your email address. re: Menu compilation error
  FoxInCloud Support - Thierry N.
  Paul
  Dec 6, 2018 @ 02:38am

modify command home(1) + 'tools\ab\abTxt.prg':

* ===================================================================
function cL && {fr} Littéral VFP && {fr} Alias de cLitteral()
lparameters ;
  tuValue; && @ {fr} Valeur à convertir en littéral (tous type supportés : CDGLNOQTUXY) {en} Value to be turned into a literal (all types supported : CDGLNOQTUXY)
, tlRTrim; && [.F.] {fr} si type C, ôter les espaces à droite {en} if type C, trim right spaces
, tnTronc; && [aucun] {fr} si type C, nombre de caractères de troncature {en} if type C, number of characters to truncate to
, tlXML; && [.F.] {fr} Encoder pour XML {en} Encode for XML
, tlObjRecurseNot; && [.F.] {fr} Ne pas récurser dans les membres et propriétés de type objet {en} Do not recurse into member and object properties

return cLitteral(;
	 @m.tuValue;
	, m.tlRTrim;
	, m.tnTronc;
	, m.tlXML;
	, m.tlObjRecurseNot;
	)

I recommend VFPx's goFish to search within projects

Gravatar is a globally recognized avatar based on your email address. re: Menu compilation error
  Paul
  FoxInCloud Support - Thierry N.
  Dec 6, 2018 @ 12:18pm

Thanks Thierry,

FAS sets the path to the AB directory, so not sure why it didn't find this prg. Anyway, resolved for now.

Paul

Gravatar is a globally recognized avatar based on your email address. re: Menu compilation error
  FoxInCloud Support - Thierry N.
  Paul
  Dec 7, 2018 @ 02:28am

OK fine thanks for the feedback

© 1996-2018