Jump to content

Recommended Posts

Posted

Hi all,

How to output the results of the IniReadSelection command in a Label? In the helpfile they discribe it with a messagebox. But how to let a Label display the output?

  • Moderators
Posted

GUICtrlSetData().

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

  • Moderators
Posted

Tried that, but that didnt work. Maybe because its an array?

duh?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted (edited)

Something along these lines as per the IniReadSection help

$aIni = IniReadSection("inifile.ini", "section")
$j = ""
For $i = 1 To $aIni[0][0]
    $j &= $aIni[$i][0] & " = " & $aIni[$i][1] & @CRLF
Next
GUICtrlSetData(control_id, $j)
Edited by picaxe

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...