APLX Help
: System Classes
: Methods
: Valueof
|
|
![]() |
The 'Valueof' method |
Argument: Character vector Valid for: OCX controls, OLE server applications and OLEContainer (Implemented under Windows only) Many OCX controls and OLE servers define named constant values or 'enums' as valid arguments for properties and methods. Often the documentation will refer to the names of these constants without giving the values, which you need to use them from APL. (The APLX Control Browser window shows constant values by category for controls and servers which publish them.) The Valueof method allows you to determine the value of a constant associated with the control or server at runtime. It takes a character vector argument which is the name, and returns the value. For example, Formula One defines a set of enumerated values for file formats. To select the Formula One Version 3 format, you need the constant F1FileFormulaOne3. You can determine it from within APLX as follows: W.F1.ValueOf 'F1FileFormulaOne3' 5 |
|
APLX Help
: System Classes
: Methods
: Valueof
|
Copyright © 1996-2010 MicroAPL Ltd