Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array - Adding lines
Message
From
14/11/2001 14:17:04
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00581261
Message ID:
00581698
Views:
19
Rodolfo,

FYI, you can assign a single value to every element in an array.
Dimension MyArray[2,3]

MyArray = "Test"

? MyArray[1,1]
? MyArray[2,2]
- Keith

>Hi Rodolfo,
>
>Dimension MyArray[2,3]
>MyArray[1,1] = "a"
>MyArray[1,2] = 2
>MyArray[1,3] = .t.
>MyArray[2,1] = "b"
>MyArray[2,2] = "c"
>MyArray[2,3] = 3
>
>You can't assign values to the whole array with a single command (this is possible with clipper though).
>
>Alex
>
>>Hi,
>>
>>I'd like to create a new array called MyArray[2,3] and then, adding values like this:
>>
>>Declare MyArray[2,3]
>>MyArray = "a", 2, .T., "b", "c", 3
>>
>>Is it possible? Any user function?
>>
>>[]'s
>>
>>Rodolfo Duarte
>>Ribeirao Preto / SP / Brazil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform