Obtaining Subscript Info for Array Passed by Reference

Last reviewed: April 29, 1996
Article ID: Q103595
The information in this article applies to:
  • Professional Edition of Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b
  • Microsoft FoxPro Library Construction Kit for MS-DOS, versions 2.5x, 2.6x
  • Microsoft FoxPro Library Construction Kit for Windows, version 2.5x, 2.6x

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 reference words: VFoxWin 3.00 3.00b FoxWin FoxDos 2.50 2.50a
2.50b 2.60 2.60a API arguments l_subs LCK
KBCategory: kbprg
KBSubcategory: FxtoolLck


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.