problem using isNil() (Solved)

Post Reply
chiaiese
Posts: 117
Joined: Wed Feb 08, 2006 10:32 pm
Location: Roma, Italia
Contact:

problem using isNil() (Solved)

Post 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

Roberto Chiaiese
R&C Informatica S.n.c.
https://www.recinformatica.it
[email protected]

Harbour 3.2 - FW2512

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: problem using isNil() (Solved)

Post by Antonio Linares »

Dear Roberto,

Implemented for next FWH 26.03 version

Many thanks :wink:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply