_Kurt Posted December 21, 2006 Posted December 21, 2006 (edited) I would like to find out how many arrays there are in a _StringBetween function. Example: #include <String.au3> $test = "/1/ /2/" $str3 = _StringBetween($test, "/", "/") So I'm trying to find the highest array, in this case it would be $str3[1] (since there are two, and arrays go 0,1,2,3,etc) Thanks for your help, Kurt Edited December 21, 2006 by _Kurt Awaiting Diablo III..
xcal Posted December 21, 2006 Posted December 21, 2006 (edited) #include <String.au3> #include <Array.au3> $test = "/1/ /2/" $str3 = _StringBetween($test, "/", "/") _ArrayDisplay($str3, '') MsgBox(0, '', UBound($str3) - 1) ;edit - forgot the -1, oops. Edited December 21, 2006 by xcal How To Ask Questions The Smart Way
_Kurt Posted December 21, 2006 Author Posted December 21, 2006 Thanks for your help, xcal. I attempt try to resolve my problem with that code. Kurt Awaiting Diablo III..
xcal Posted December 21, 2006 Posted December 21, 2006 (edited) Np, I edited. I forgot the - 1 for Ubound(), so it properly returns a 0 based array total. edit - and this post I edited because I have spelling issues. Edited December 21, 2006 by xcal How To Ask Questions The Smart Way
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