Sign in to follow this  
Followers 0
pl4y0n

Array ERROR

7 posts in this topic

#include <array.au3>
local $text = "text"
local $i
for $i = 100 to 0 - 1
    $section = $text[$i]
IniWrite("C:\Documents and Settings\Alex\My Documents\Autolt\myfile.ini", $section , "key")
next
sleep(500)
ShellExecute("C:\Documents and Settings\Alex\My Documents\Autolt\myfile.ini")

i get myfile.ini empty

what's wrong?

Share this post


Link to post
Share on other sites



yes i had but firt i used IniWriteSection and dosen't wrok too :unsure:

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

yes i had but firt i used IniWriteSection and dosen't wrok too :unsure:

Jos was right U missed some parameters.

Try:

#include <array.au3>
Local $text = "text"
Local $i
For $i = 100 To 0 Step -1
    $section = $text & $i; <<< =====  You also tried using an Array. Try this instead or Declare the array first!
    IniWrite("myfile.ini", $section, "key", $i); <<< ==== parameters 
Next
Sleep(500)
ShellExecute("myfile.ini")

== Removed duplicate ==

Edited by JoHanatCent

Share this post


Link to post
Share on other sites

Jos was right U missed some parameters.

Try:

#include <array.au3>
Local $text = "text"
Local $i
For $i = 100 To 0 Step -1
    $section = $text & $i; <<< =====  You also tried using an Array. Try this instead or Declare the array first!
    IniWrite("myfile.ini", $section, "key", $i); <<< ==== parameters 
Next
Sleep(500)
ShellExecute("myfile.ini")

== Removed duplicate ==

For $i = 100 To 0 Step -1 = For $i = 100 To 0 -1 ????

anyway thx for help!!

Share this post


Link to post
Share on other sites

For $i = 100 To 0 Step -1 = For $i = 100 To 0 -1 ????

R U Shure?

If I leave the "step" out I get absolute nothing!


Share this post


Link to post
Share on other sites

i just asking :unsure:

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