home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / IniReadSection.au3 < prev    next >
Text File  |  2005-01-22  |  257b  |  9 lines

  1. $var = IniReadSection("C:\Temp\myfile.ini", "section2")
  2. If @error Then 
  3.     MsgBox(4096, "", "Error occured, probably no INI file.")
  4. Else
  5.     For $i = 1 To $var[0][0]
  6.         MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1])
  7.     Next
  8. EndIf
  9.