FoxInCloud
Problem with awfrm.wGetColor()
Gravatar is a globally recognized avatar based on your email address. Problem with awfrm.wGetColor()
  Paul
  All
  Dec 12, 2019 @ 03:07pm

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

Gravatar is a globally recognized avatar based on your email address. re: Problem with awfrm.wGetColor()
  FoxInCloud Support - Thierry N.
  Paul
  Dec 13, 2019 @ 01:04am

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

Gravatar is a globally recognized avatar based on your email address. re: Problem with awfrm.wGetColor()
  Paul
  FoxInCloud Support - Thierry N.
  Dec 15, 2019 @ 02:01pm

Thanks.
This will be in the next beta?

Gravatar is a globally recognized avatar based on your email address. re: Problem with awfrm.wGetColor()
  FoxInCloud Support - Thierry N.
  Paul
  Dec 16, 2019 @ 05:09am

surprise, surprise … yes of course

© 1996-2020