That's very interesting Keith.
It means that the functionality is there already in vfp to do inline assignments for arrays.
If we could just convince them to add a parser so we could do:
myArray = {{"a", 1, .t.}, {"b", 2, .f.}}
Alex
>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
Low-carb diet not working? Try the Low-food diet instead!