Jump to content

Array's & stringbetweet


Recommended Posts

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 :whistle:

Link to comment
Share on other sites

  • Developers

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.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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