FoxInCloud
Problem with awfrm.wGetColor()
Hi,
FAA has introduced a bug with GetColor().
FAA adaptation :
*-FIC- Replaced by FoxInCloud Adaptation Assistant version 2.28 (source mode) on 08/08/2019 11:00:30
*-FIC- newColor = Getcolor()
newColor = thisForm.wGetcolor('', )
awfrm.wGetColor() expects a numeric value as the second parameter, but FAA has omitted the second parameter and thus it is logical.
The result is an error.
The fix would be to accept a logical second parameter and ignore it.
Paul
Here is a fix:
modify command awPublic.prg
* =============================================================
function wGetColor && {fr} GetColor() _SANS RETOUR MODAL_ en mode LAN ou Web
&& _MODAL_ GetColor():
&& {en} - form method: use thisForm.wGetColor()
&& {en} - standalone procedure or function: NOT SUPPORTED
lparameters nDefaultColorNumber
local llParm
llParm = Vartype(m.nDefaultColorNumber) == 'N'
return ICase(;
wlWeb(),;
.null.,; && {en} NOT SUPPORTED YET
m.llParm,;
GetColor(m.nDefaultColorNumber),;
GetColor();
)
endfunc