ASUBSCRIPT( ) Function
| Visual FoxPro 9.0 SP2 |
| ASUBSCRIPT( ) Function |
| See Also |
|
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.
Return Value
Remarks
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08