Click or drag to resize

ALen Function (FoxArray)

X#
Returns the number of elements, rows, or columns in an array.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION ALen(
	a AS FOXARRAY
) AS DWORD
Request Example View Source

Parameters

a
Type: FoxArray

Return Value

Type: DWord
Numeric
Examples
X#
 1CLEAR
 2=AFONT(gaFontArray)  // Array containing font names
 3gnNumFonts= ALEN(gaFontArray)  // Number of fonts
 4IF gnNumFonts > 10
 5gnNumFonts = 10  // Display first 10 fonts
 6ENDIF
 7FOR nCount = 1 TO gnNumFonts
 8? ALLTRIM(gaFontArray(nCount))  // Display font name
 9?? '  This is an example of ' ;
10+ ALLTRIM(gaFontArray(nCount)) FONT gaFontArray(nCount), 8
11ENDFOR
See Also