Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning Arrays to other variables - and sorting them
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00091772
Message ID:
00091965
Views:
16
Paul,

What is your problem. . . are you saying that Item(x,9) can have different types from entry to entry? While certainly not impossible, it is unusual, and should be something you can "fix".

Just in case. . . as long as all the Item(x,9)s *are* the same type, ASORT will work for you.

good luck,
Jim N

>>I've got a class I'm developing that calculates various statistics from a bunch of different tables. One of the Methods generates an array that is built from this data. The array seems to work fine in the code, but when I attempt to assign it to a property in my object, all of the fields are duplicated.
>> What am I doing wrong??
>>
>
> I just figured out I should be using ACOPY(). However, I'm still having problems using the ASORT() command. According to the manual, ASORT can only sort fields that have the same field types. Is there a different way of sorting my array?
>
>(1,1) = "Location 1" (1,9) = 2 (1,10) = "Z"
>(2,1) = "Location 2" (2,9) = 1 (2,10) = "ZZ"
>(3,1) = "Location 3" (3,9) = 3 (3,10) = "ZZZ"
>
>Elements (x,2-8) have various values in them. I need to sort the entire array based on column 9. I suppose I could create a table out of these values, and then sort it back into an array. It just seems like a goofy way of doing things.
>
>-Paul
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform