Programming Reference Manual
 
Syntax
 
ReadIniSection section$,ArrayOfItems()[,filename$]
 
 
Description
Fills an array with the item names from a given section of the specified ini file.
 
On return, the ArrayOfItems() parameter will contain one array element for each variable in the specified ini section.
 
Parameter
Description
section$
String specifying the section that contains the desired variables, such as “windows”. Section names are specified without the enclosing brackets.
ArrayOfItems()
Specifies either a zero- or a one-dimensioned array of strings or variants. The array must be dynamic. It will be redimensioned to exactly hold the new number of elements. If there are no elements, then the array will be redimensioned to contain no dimensions. You can use the LBound and UBoundfunctions to determine the number and size of the new array’s dimensions.
filename$
Optional. String containing the name of the ini file to read. If omitted, CBBS32.INI from the %WinDir% is assumed.
See Also
Example
 
Sub Main
    Dim items() As String
    Dim x as integer
    ReadIniSection “Editor”,items()
    For x = LBound(items) to UBound(items)
        Debug.Print x & “: “ & items(x)
    Next x
End Sub