Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Array parameter is 1 or 2 Dimension?
Message
From
11/03/1998 21:03:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Determine Array parameter is 1 or 2 Dimension?
Miscellaneous
Thread ID:
00084064
Message ID:
00084064
Views:
51
Some array problem:

1st, if calling function is myFunc(@ArrayName),
How to know the array is one dimension or two dimension or above...
i.e. ArrayName[1] or ArrayName[2,3] or ArrayName[2,3,1] ...??
Because ALen() only return row or column.
In case check equal is not correct!!
As ArrayName[4,4] will trick as one dimension! ~_~"

2nd, Acopy() will copy the one dimension array to the most upper one!!

e.g. ArrayOne[4] get a list {3,4,5,6}
if acopy() to ArrayTwo[4,3] will be:
ArrayTwo[1,1] = 3 ArrayTwo[1,2] = 4 ArrayTwo[1,3] = 5
ArrayTwo[2,1] = 6!!

Well, if I want to copy to a set of row or column,
especially for matrix array handling!!
How could I do... assign them one by one?
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Next
Reply
Map
View

Click here to load this message in the networking platform