AVCXCLASSES( ) Function Example

The following example uses AVCXCLASSES( ) to create and populate an array named aClasses with the names and base classes of the classes in the Buttons class library. DISPLAY MEMORY lists the contents of the array in the main Visual FoxPro window.

ACTIVATE SCREEN
CLEAR

? AVCXCLASSES(aClasses, '\VFP\SAMPLES\CLASSES\BUTTONS.VCX')
*** Displays 5

FOR nColCount = 1 TO ALEN(aClasses,2) && Loop through columns
   ? aClasses(1, nColCount) && Each column of the 1st class
NEXT

*** Displays the following:
*
* cmdCancel
* commandbutton
* cmdok
* buttons.vcx
* cancel.bmp
* cancel.bmp
* Pixels
* Release Form or Form Set
* 
* 
* .F.