Returns the row or column subscript of an element from the element's number.
ASUBSCRIPT(ArrayName, nElementNumber, nSubscript) |
Parameters
- ArrayName
-
Specifies the name of the array.
- nElementNumber
-
Specifies the element number.
- nSubscript
-
Determines if the row or column subscript is returned.
If the array is one-dimensional, include the element number in nElementNumber and 1 in nSubscript. ASUBSCRIPT( ) identically returns nElementNumber.
If the array is two-dimensional, include both the element number nElementNumber and a value of 1 or 2 in nSubscript. Specifying 1 in nSubscript returns the row subscript of the element, and specifying 2 returns the column subscript.
For more information on how to reference elements in an array, see DIMENSION.
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08