Sign in to follow this  
Followers 0
PcExpert

IniReadSelection output in label

5 posts in this topic

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Edited by PcExpert

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#5 ·  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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0