FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour problem using isNil() (Solved)
Posts: 113
Joined: Wed Feb 08, 2006 10:32 PM
problem using isNil() (Solved)
Posted: Fri Feb 20, 2026 02:31 PM

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
info@recinformatica.it

Harbour 3.2 - FW2512

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: problem using isNil() (Solved)
Posted: Sat Feb 21, 2026 08:35 AM

Dear Roberto,

Implemented for next FWH 26.03 version

Many thanks :wink:

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion