butterfly Posted June 1, 2014 Posted June 1, 2014 My code $ScreenShotWidth = 200 ; for example For $i = 0 To $ScreenShotWidth - 1 If $screenShotArray[0][$i] = "" Then $aSize = $i ExitLoop EndIf ConsoleWrite("WTF=" & $screenShotArray[0][$i] & "=WTF" & @LF) ConsoleWrite($i & @LF) Next My multi-array is only Filled with 0 and 1 values and "" as in completely empty What Am i doing wrong here? stuck at it for 45 minutes all my consolewrites look this WTF=0=WTF WTF=1=WTF WTF==WTF So I assume it is in the last example completely empty I guess I am overlooking some basic rules
Solution FireFox Posted June 1, 2014 Solution Posted June 1, 2014 Hi, Not sure if your situation is included in this page of the doc, but to be short, 0 equals an empty string. You need to either use IsNumber/IsString or compare with VarGetType. Br, FireFox.
butterfly Posted June 1, 2014 Author Posted June 1, 2014 I was Afraid for that, Back to the Drawing-board. (not a biggy though) Very helpful Indeed
czardas Posted June 1, 2014 Posted June 1, 2014 (edited) You can use: If Not StringLen($screenShotArray[0][$i]) Then or perhaps: If $screenShotArray[0][$i] == "" Then Edited June 1, 2014 by czardas operator64 ArrayWorkshop
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