Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array \ cursor
Message
De
21/11/2002 06:50:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00724659
Message ID:
00725078
Vues:
31
>>The number of the current player is stored in variable lnCurrentPlayer.
>>
>>For the names of the players, you use an array laPlayerNames, declared with DIMENSION laPlayerNames(10). The name of the current player is laPlayerNames(lnCurrentPlayer).
>>
>>The score of the current player is laScores(lnCurrentPlayer) (that is, in another array, also with 10 elements).
>>
>>This particular example would be more difficult to manage with cursors.
>>
>>HTH, Hilmar.
>
>Why? :)
>
>You can have a cursor with three fields: ID, Name, Score...
>What's the difference?

I believe it is simply more code to maintain the cursor, but I didn't do a detailed analysis.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform