Sign in to follow this  
Followers 0
ngskicker

the easier way

2 posts in this topic

can someone help to optimize my script, the easier way

Func myfunc()
    $start = GUICtrlRead($ToListInput)
    $n0 = IniRead("setup.ini","details", "id00","")
    $n1 = IniRead("setup.ini","details", "id01","")
    $n2 = IniRead("setup.ini","details", "id02","")
    $n3 = IniRead("setup.ini","details", "id03","")
    $n4 = IniRead("setup.ini","details", "id04","")
    $n5 = IniRead("setup.ini","details", "id05","")
    $n6 = IniRead("setup.ini","details", "id06","")
    $n7 = IniRead("setup.ini","details", "id07","")
    $n8 = IniRead("setup.ini","details", "id08","")
    $n9 = IniRead("setup.ini","details", "id09","")
    $s0 = StringReplace($start, $n0, "")
    $s1 = StringReplace($s0, $n1, "")
    $s2 = StringReplace($s1, $n2, "")
    $s3 = StringReplace($s2, $n3, "")
    $s4 = StringReplace($s3, $n4, "")
    $s5 = StringReplace($s4, $n5, "")
    $s6 = StringReplace($s5, $n6, "")
    $s7 = StringReplace($s6, $n7, "")
    $s8 = StringReplace($s7, $n8, "")
    $s9 = StringReplace($s8, $n9, "")
    GUICtrlSetData($input, $n9)
EndFunc

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Someone just asked this exact same question... Lemme see if I can find the topic... :D

edit:

Hmm... You were the one who asked it... lol... Your old topic is Right Here...

Try looking at Big_Daddy's and Authenticity's examples a little more, they explain the concept totally...

Look at For...Next loops a little better, I think that might help... :o

Edited by BinaryBrother

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