sambalec Posted April 15, 2009 Author Share Posted April 15, 2009 (edited) I didn't find good command on helpfile and documentation... I tried lot of bad combinaisons ... Edit : Found Edited April 15, 2009 by sambalec Link to comment Share on other sites More sharing options...
sambalec Posted April 16, 2009 Author Share Posted April 16, 2009 (edited) What do you think about my code : #include <String.au3> GLobal $id, $size, $name, $result $string = "SXBP22 Wii fit PAL 1.75G" & @CR & "SXAP52 Guitar Hero: World Tour 3.95G" & @CR & "SXBE52 Guitar Hero Metallica 4.13G" $aReturn = StringSplit ($string, @CR, 0) ;choose line 1 _Line(1) MsgBox(0,"Line 1 - Game ID",$id) ;choose line 2 _Line(2) MsgBox(0,"Line 2 - Game Size",$size) ;choose line 3 _Line(3) MsgBox(0,"Line 3 - Game ID",$name[0]) Func _Line($nb) For $i = 1 to $aReturn[0] $id = StringLeft($aReturn[$nb], 6) $size = StringRight($aReturn[$nb], 5) $name = _StringBetween ($aReturn[$nb], $id, $size) Next EndFunc Edited April 16, 2009 by sambalec Link to comment Share on other sites More sharing options...
jvanegmond Posted April 16, 2009 Share Posted April 16, 2009 Very good apart from the use of global variables instead of parameters. github.com/jvanegmond Link to comment Share on other sites More sharing options...
nugame Posted April 16, 2009 Share Posted April 16, 2009 Don't know if this is the place or start new thread. I have the stringsplit with no problems. But I downloaded the Array2D UDF that contains _StringSplit. The include folder and cannot find on autoit site the UDF with _StringSplit. Can anybody help or correct. thanks. Dr SherlockAlways a way Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now