Jump to content

Recommended Posts

Posted

Just write the $strData to a file and attach that to a post so we can have a look at that .....

Guys i very estimate the help its more what i thought i can get in forum 10nx

Ok i just Upload the $strData

1.rar

  • Developers
Posted

Guys i very estimate the help its more what i thought i can get in forum 10nx

Ok i just Upload the $strData

You need to get rid of the @lf or use that too in the stringsplit()

something like this works:

#include<array.au3>
$strData=FileRead("1.txt")
$days = StringSplit($strData, @CRLF,1)
_ArrayDisplay($days)
MsgBox(0, "Dayz are: ", $days[1]+$days[2])

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

WOOOW its work sorry i cant stop myself but WOW i thought the all script is wrong and i need another way and i just FALL on @CRLF instead of @CR Jos 10nx 4 your patience (bedanken)

Saundres solve it in the first But i was So stupid that i thought IT CAN BE so simple 10nx

Edit: Although I bet I know what the problem is... in the initial post you're splitting by @CR but you probably need to split by @CRLF, because otherwise your math is like (5 + @LF10 + @LF15 + @LF20) which = 5.

Perhaps try splitting by @LF instead, and then wrap with int.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...