Ghost21 Posted March 19, 2007 Posted March 19, 2007 I have been trying to get this line . |joist|22|DJ1|Lumber-2x||||||8.000|06-11-03||||||JOIST| Too split up into multiable arrays . I can get to open the file read the line but I can't get the info IN BETWEEN the " | " to goto an Array[0] [1] [2] and so on. A kick in da ass in the right direction would be greatly appreciated... " OUCH " Thanks
Valuater Posted March 19, 2007 Posted March 19, 2007 Like this $Array = StringSplit("|joist|22|DJ1|Lumber-2x||||||8.000|06-11-03||||||JOIST|", "|") For $x = 1 To $Array[0] If $Array[$x] = "" Then ContinueLoop MsgBox(0x0, "My Array", $Array[$x], 2) Next 8)
Ghost21 Posted March 19, 2007 Author Posted March 19, 2007 Now in the middle of the line it show ||||| can we assign an array to those even if it finds nothing ????
Developers Jos Posted March 19, 2007 Developers Posted March 19, 2007 Now in the middle of the line it show ||||| can we assign an array to those even if it finds nothing ????You mean it doesn't already ? $Array = StringSplit("|joist|22|DJ1|Lumber-2x||||||8.000|06-11-03||||||JOIST|", "|") For $x = 1 To $Array[0] MsgBox(0x0, "My Array", $Array[$x], 2) Next 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.
Ghost21 Posted March 19, 2007 Author Posted March 19, 2007 Yeah sorry .. I had to set it to display the count number and I saw it counting right... Thankyou very much...
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