Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EOF and BOF with Local Views
Message
De
16/02/2015 01:24:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
14/02/2015 11:41:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01615325
Message ID:
01615346
Vues:
61
>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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform