ConfigGetByIndex Method (IMConfig)
type of the option
index of the option
value of the option
Gets the option of the certain type by its index.
Syntax
Sub ConfigGetByIndex( _
   ByVal _bsType As String, _
   ByVal _nIndex As Integer, _
   ByRef _pbsName As String _
) 
void ConfigGetByIndex( 
   string _bsType,
   int _nIndex,
   out string _pbsName
)
procedure ConfigGetByIndex( 
    _bsType: String;
    _nIndex: Integer;
   Out  _pbsName: String
); 
void ConfigGetByIndex( 
   BSTR* _bsType,
   int _nIndex,
   [PARAMFLAG::Out] BSTR* _pbsName
) 

Parameters

_bsType
type of the option
_nIndex
index of the option
_pbsName
value of the option
Example
Dim myOption As String
myWriter.ConfigGetByIndex("format", 1, myOption)
string myOption;
myWriter.ConfigGetByIndex("format", 1, out myOption);
var
myWriter: MWriter;
myConfig: IMConfig;
myOption: string;
begin
myWriter:= CreateComObject(CLASS_MWriter) as MWriter;
myConfig:=myWriter as IMConfig;
myConfig.ConfigGetByIndex('format', 1, myOption);
end;
See Also

Reference

IMConfig Interface
IMConfig Members