Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Local $iMax
- Local $data = "Element 1|Element 2|Element 3"
- ; The string in data will be split into an array everywhere | is encountered
- Local $arr = StringSplit($data, "|")
- If IsArray($arr) Then
- $iMax = UBound($arr); get array size
- ConsoleWrite("Items in the array: " & $iMax & @LF)
- For $i = 0 to $iMax - 1; subtract 1 from size to prevent an out of bounds error
- ConsoleWrite($arr[$i] & @LF)
- Next
- EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement