>Borislav,
>
>actually adding the second parameter to DoDefault() made the strange behavior stop. I don't mean to be ungrateful, but I was not so interested in solving the problem itself, because I already had that solved. I was more interested in knowing WHY the construct
>If condition1 and condition2
> do something
>Endif
>behaves differently from
>If condition1
> If condition2
> do soemthing
> Endif
>Endif
>I am pretty sre that this is a bug, but I don't expect it to be fixed. :-)
>
Keypress is the event representation of GRID or COMBO controls :-) BUGgy but can't leave w/o them. Somethimes it asks me to add DODFEAULT() w/o NODEFAULT and just when I thought I figured out what happens that event changes its mind and start behaves differently :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.