Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array \ cursor
Message
From
21/11/2002 06:50:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00724659
Message ID:
00725078
Views:
27
>>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform