AGetClass(), AVCXClasses()
These two functions are aimed more at tool builders than application builders. AGetClass() displays the Class Open dialog and returns information about the class chosen. AVCXClasses() fills an array with information about all the classes in a class library.
Usage |
lChoseOne = AGetClass( ClassInfo [, cClassLib [, cClass [, cDialogCaption [, cFileNameCaption [, cButtonCaption ] ] ] ] ]) nClassCount = AVCXClasses( ClassInfo , cClassLib ) |
Parameter |
Value |
Meaning |
ClassInfo |
Array Name |
An array containing the requested information. For AGetClass(), the array has two elements in a single row—the class library and class name chosen. For AVCXClasses(), the array has one row for each class in the library, with 11 columns containing information about the class. |
cClassLib |
Character |
For AGetClass(), the name of the class library to highlight initially. For AVCXClasses(), the name of the class library whose class information goes into the array. |
cClass |
Character |
The class to highlight initially. |
cDialogCaption |
Character |
The caption to put on the Open dialog. |
Omitted or "" |
The dialog caption is "Open". |
|
cFileNameCaption |
Character |
The string to display next to the File Name prompt. |
Omitted or "" |
"File Name:" is displayed. |
|
cButtonCaption |
Character |
The caption for the OK button. |
Omitted or "" |
The button says "OK". |
|
lChoseOne |
.T. |
The user chose a class. |
.F. |
The user chose Cancel or ESC. |
|
nClassCount |
Numeric |
The number of classes in the class library chosen. |
Example |
* Start in the FFC subdirectory lGotOne = AGetClass(aClassInfo,"_base.vcx") * To find out what classes are in the library * containing the class just selected nClassCount = AVCXClasses(aClassList, aClassInfo[1,1]) |
See Also |