On Sun, Jun 21, 2009 at 11:34 AM, Chen Kedem <[email protected]> wrote:

> Testing hbformat.exe made with ChangeLog 2009-06-21 08:26 UTC+0200 Viktor
> Szakats
> (rev11463), BCC32.
>
>
> 1) If the bak file already exists, the program does nothing but tell it did
> "Reformatting".
>
> 2) The IF function is treated like the IF statement (the IFF function is
> Ok):
>
> ---tt1.prg---
> func test1()
> local X
> do while .t.
>   if(.T.,X:=1,)
>   exit
> enddo
> return NIL
> -------------


That's the main reason I always correct inline IF() to
be IIF(). Otherwise the syntax is ambiguous and
difficult to detect by simple means.

--- This is an IF statement:
IF ( .T., .F., .T., .F. )
   ? "hello"
ENDIF

--- This is an inline IIF:
IF ( .T., .F., .T. )
   ? "hello"
ENDIF

Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to