Microsoft KB Archive/103595

= Obtaining Subscript Info for Array Passed by Reference =

Article ID: 103595

Article Last Modified on 7/15/2004

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Professional Edition
 * Microsoft Visual FoxPro 3.0b Professional Edition
 * Microsoft FoxPro Library Construction Kit 2.5b for MS-DOS
 * Microsoft FoxPro Library Construction Kit 2.6 for MS-DOS
 * Microsoft FoxPro Library Construction Kit 2.6
 * Microsoft FoxPro Library Construction Kit 2.6

-



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.

Additional query words: VFoxWin 3.00 3.00b FoxWin FoxDos 2.50 2.50a 2.50b 2.60 2.60a API arguments l_subs LCK

Keywords: KB103595

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.