Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No Duplicates
Message
De
06/05/2010 09:01:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01462570
Message ID:
01463396
Vues:
34
>>>It may be not a very good code and could be possible broken. Write your own code using scan/endscan instead.
>>>
>>and the group is the names being Equal i get it an I used the orginal . an oh :( i have too do a scan ?:(
>
>Up to you - you can use my code or you can try writing your own code for a change.

OK uhum.
I wrote this in my book last night havent tried it in my program but i would think it looks like something.
Select zero
pnRec=-1
pcname=zero.fname

Scan
         IF pcname=zero.fname
                     pnRec=m.pnrec+1
           Else 
                pnRec=0
           Endif
         Replace ID field with pnRec
Endscan
but looking at it,im not seeing where pcname is being incremented unless the scan will do it
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform