Obtaining Subscript Info for Array Passed by Reference (103595)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows, Professional Edition 3.0
- Microsoft Visual FoxPro for Windows, Professional Edition 3.0b
- Microsoft FoxPro Library Construction Kit for MS-DOS 2.5x
- Microsoft FoxPro Library Construction Kit for MS-DOS 2.6x
- Microsoft FoxPro Library Construction Kit for Windows 2.5x
- Microsoft FoxPro Library Construction Kit for Windows 2.6x
This article was previously published under Q103595 SUMMARY
The l_subs member of the Locator structure for arrays passed by reference
is not set appropriately when the function is invoked. To obtain subscript
information for an array, call the _ALEN() function using the l_NTI member
of the Locator structure.
MORE INFORMATION
When using ALEN() with the mode AL_SUBSCRIPT2, a return of 0 means that the
array is one dimensional. Otherwise, you receive the second dimension of
the array.
AL_SUBSCRIPT1 returns the first dimension of the array.
AL_ELEMENTS returns the total number of elements in the array.
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | KB103595 |
---|
|