Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do i get next one?
Message
De
30/01/2001 18:19:32
 
 
À
30/01/2001 18:15:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00470400
Message ID:
00470403
Vues:
27
>Hi fox world!!!
>I'm using a select statement...
> into cursor MyCursor
>i want to do a for loop on the values , but i always get the same value...
>there is sample of that code
>select usag_iden ;
> from usagers4 ;
> where !deleted() and ;
> left(usag_iden,3) = tcProj_code and ;
> Grou_code = tcGrou_code ;
> into cursor NextMembre
>....
> for i = 1 to _tally
> letMemb=substr(usag_iden,5)
>....
>The (usag_iden) always gives me the same value...
>How do i get next one?

Use SCAN/ENDSCAN instead of FOR/ENDFOR. It will automatically go through each record of the cursor.
Fred
Microsoft Visual FoxPro MVP

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

Click here to load this message in the networking platform