Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update conflict
Message
 
 
À
18/11/2010 09:50:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01489567
Message ID:
01489586
Vues:
60
Why go half way?
Select NVL(max(itemnum), 0) from inspdata where jobnum==lnJobnum into array lnMaxItem
RETURN lnMaxItem[1]
Also if table/view is buffered it'll require
WITH (BUFFERING = .T.)
>It may not be related, but instead of Calculate, I would use a SQL Select statement instead, since it doesn't move the record pointer.
>
>IF !EOF('inspdata') AND !BOF('inspdata')
>   local lnjobnum
>   lnJobnum=inspheader.jobnum
>   Select max(itemnum) from inspdata where jobnum==lnJobnum into array lnMaxItem
>   RETURN lnMaxItem
>ELSE
>   Return 0
>endif
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform