Page 1 of 1

problem using isNil() (Solved)

Posted: Fri Feb 20, 2026 2:31 pm
by chiaiese

hello there,
after upgrading from FW2002 32bit to FW2512 64bit I had a strange behavior using isNil():

before the upgrade:
if !isNil(oFld := oEdit:GetFld("SmtpPass"))
oFld:lPwd := .t. // here <oFld> was the object I espected
endif

after the upgrade I get this error on assigning oFld:lPwd:
Descrizione dell'errore: Error BASE/1005 Variabile non disponibile: LPWD
Args:
[ 1] = L .F. <oFld> becames a logical value!!
[ 2] = L .T.

So I had to modify in Fivewin.ch:
#xtranslate IsNil( <var> ) => (<var> == nil )
to:
#xtranslate IsNil( <var> ) => ((<var>) == nil ) //parenthesis added
and now it works again

regards


Re: problem using isNil() (Solved)

Posted: Sat Feb 21, 2026 8:35 am
by Antonio Linares

Dear Roberto,

Implemented for next FWH 26.03 version

Many thanks :wink: