>Can you use EOF and BOF commands with views. My code reads:
>
>sele v_vendors
>
>do case
> case bof()
> **do something with navigation button
>
> endcase
>
>But nother happens. I'm sure I'm sitting on the first record in the table so therefor shouldn't BOF = .T.?
To put Als words the other way around:
If you like to have a skip forward backward navigation interface that disables buttons on first / last record you need to catch every move of the record pointer (much fun, since this is not event driven) and do a skip -1 => BOF(); SKIP 1 => EOF(); GOTO lastrec thing yourself. This is a good place to learn DBX style programming, because you will understand a lot of traps afterwards. If you are to lazy to invent this wheel again, do yourself the favour and use a thirdparty framework. They are matured those days, since there are no new bugs inroduced anymore (to the language).
just my EUR 0,01
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]