Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Abstract Classes
Message
 
À
31/03/1997 03:05:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00026135
Message ID:
00026276
Vues:
28
>I am happy to take your advice. What I am doing now is generating the number
>and , in a DO WHILE loop, SEEKing it and re-generating it until !FOUND(). If I put
>the primary key in a table, how do I generate it? By just adding 1 to its existing
>value? In a busy network, am I liable to face contention problems?
USE KeyTable
IF Seek(lcAlias, 'cTableName')
    RLOCK()
    liRetVal = iKeyVal
    REPLACE iKeyVal WITH iKeyVal + 1
    UNLOCK
ENDif

RETURN liRetVal
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform