Sign in to follow this  
Followers 0
TomCat

IniReadSection into GUICtrlCreateEdit

3 posts in this topic

Hi i have some problem and i dint find any solution.

How can i read an ini section with IniReadSection and put it into an GUICtrlCreateEdit ?

Only way i found at the moment is:

$read = FileRead($open, FileGetSize($open))

GUICtrlSetData($Edit1, $read)

than i get whole ini into the GUICtrlCreateEdit but i only want to get the body of an inisection into it :-/

Can someone help me ?

Share this post


Link to post
Share on other sites



Hi i have some problem and i dint find any solution.

How can i read an ini section with IniReadSection and put it into an GUICtrlCreateEdit ?

Only way i found at the moment is:

$read = FileRead($open, FileGetSize($open))

GUICtrlSetData($Edit1, $read)

than i get whole ini into the GUICtrlCreateEdit but i only want to get the body of an inisection into it :-/

Can someone help me ?

I think you need something like this but I haven't tested it.

$list = IniReadSection($open,"sectionname")
$read = ""
for $n = 1 to $list[0][0]
    $read &= $list[$n][0] & "=" & $list[$n][1] $ @CRLF
Next
    
GUICtrlSetData($Edit1, $read)

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Thank you very much :P

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