XS0219 warning
Posted: Thu Dec 05, 2024 8:28 pm
Hi All,
I have this method but getting the warning
XS0219: The variable 'cFName' is assigned but its value is never used
It's not true that cFName is never used, it is used inside string. oServer is a bArrayServer with 32 records.
How can solve this?
Stefano
I have this method but getting the warning
XS0219: The variable 'cFName' is assigned but its value is never used
Code: Select all
ASSIGN Value( uValue )
LOCAL obBrowser AS bBrowser
LOCAL lHasOrder AS LOGIC
LOCAL lSuccess AS LOGIC
LOCAL cFName AS STRING
IF !IsNil( uValue )
obBrowser := SELF:oDCbBrowser
IF obBrowser <> NULL_OBJECT
oServer := obBrowser:Server
IF oServer <> NULL_OBJECT
lHasOrder := SELF:oServer:OrderINfo( DBOI_NUMBER ) > 0
IF lHasOrder
lSuccess := SELF:oServer:Seek( uValue, .F. )
ELSE
cFName := Symbol2String( SELF:symReturnField )
lSuccess := SELF:oServer:Locate( "uValue == cFName" )
ENDIF
ENDIF
IF !lSuccess
SELF:oServer:GoTop( )
ENDIF
ENDIF
ENDIF
RETURN uValue
How can solve this?
Stefano