Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EOF and BOF with Local Views
Message
From
16/02/2015 01:24:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
14/02/2015 11:41:13
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01615325
Message ID:
01615346
Views:
65
>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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform