Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easy way to store values to array elements
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01390324
Message ID:
01390329
Views:
57
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform