Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is the VFP File System Stable
Message
De
20/10/2001 18:48:41
 
 
À
20/10/2001 07:10:38
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00571072
Message ID:
00571377
Vues:
29
>Procedure GetNewPrimary
>local newTnumber,nowdbf
>nowdbf=alias()
>newTnumber=0
>use misc in 0 again alias ms
>use theTable again in 0 alias NewKeyTable order primarykey
>sele ms
>set reprocess to -1
>set deleted off
>local ix
>newTnumber=ms.mytrans
>sele NewKeyTable
>for ix=1 to 100000
>	seek newTnumber
>	if found()
>		newTNumber=newTnumber+1
>	else
>		exit
>	endif
>next
>sele ms
>if flock()
>	repl ms.mytrans with newTnumber+1
>	unlock in ms	
>endif
>set deleted on
>use in ms
>use in NewKeyTable
>if !empty(nowdbf)
>	sele (nowdbf)
>endif
>return newTnumber
>Incidently, how does one format text in this editor?

Try doing a reply to this message and note the <pre> and tags I added to your code.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform