[Harbour-users] Warning about IIF statement question

smu johnson smujohnson at gmail.com
Wed Feb 3 18:44:16 EST 2010


Hi, is there anyway to avoid the warning when I use an IFF without bothering
to pass it an ELSE statement?  This is probably not a problem or anything,
but just curious.

Thanks

Warning --> hello.PRG(4) Warning W0027  Meaningless use of expression
'Logical'

---- code ---

FUNC MAIN()

  LOCAL xSDate
  Eval({|| iif(Empty(xSDate),xSDate:=date(),.t.),.t.})

  ? xSDate

RETURN

-- 
smu johnson <smujohnson at gmail.com>


More information about the Harbour-users mailing list