Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Easy way to store values to array elements
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01390324
Message ID:
01390329
Vues:
58
I found this http://forum.foxclub.ru/read.php?29,282252,282280#msg-282280, but I believe I meant a different thread, which is hard to find.

>If you want to initialize the whole array with the same value, you can use
>
>store myValue to myArray.
>
>Also you can create VB type of arrays. I saw this problem discussed some time ago on Russian forum, will try to search for it.
>
>>>Hi all.
>>>I have a fixed idea that exist an 'easy' way to store values to the
>>>various elements of an array instead of creating many lines
>>>referring the index of row,col. I don't know if this come from CLIPPER
>>>time or if exist in FoxPro/VFPRO. So please elucidate me.
>>>The idea hammering my head is that you can store values in this way
>>>(or something similar):
>>>
>>>&& Creating a two dimensional array with 3 rows and storing strings to the elements
>>>myArray = {{'Value 1','Value 2'}, {'Value 3', 'Value 4'}, {'Value 5','Value 6'}}
>>>
>>
>>I don't think we have this syntax in VFP. It's C++/C#, VB syntax.
>>
>>See Declaring arrays in C#
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform