Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Acesso a um DBC
Message
De
18/11/2003 10:30:36
 
 
À
18/11/2003 08:41:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00850944
Message ID:
00851014
Vues:
10
Olá José Maria,

>preciso deste comando para saber qual é o último código cadastrado.

Uma maneira de saber qual o maior valor poderia ser:
Create Table SuaTabela (Codigo N (8))

Index On Codigo Tag Codigo

. . . 

Select SuaTabela
Set    Order To Codigo
Go     Bottom

If Eof ()
   nMaxCodigo = 0
else
   nMaxCodigo = Codigo
endif
Espero que ajude,

Fernando
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform