>Since Dbase III I don't need to use IF as below
>I've been using do case and IF with different structures
>
>Now I had to use it and, for my surprise, it does not work in VFP
>
>(endif missing)
>
>Moises
>
>
>
>
>IF CONFIG2.N5 = 1
> THISFORM.PRINT1
> ELSE
> IF CONFIG2.N5 = 2
> THISFORM.PRINT2
> ENDIF
I really prefer CASE structure for such cases:
DO CASE
CASE CONFIG2.N5 = 1
THISFORM.PRINT1
CASE CONFIG2.N5 = 2
THISFORM.PRINT2
ENDCASE
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.