Log in

View Full Version : what am i doing wrong?



Asalci
02-19-2012, 04:07 AM
I am getting a type mismatch error with this

If FindObjCustom(aX, bY ('Open','pen'), (3027509, 3883332, 1383712), 10,) then

everytime i try to compile i get the error, what am i doing wrong and what is it caused by?, thanks.

Ashaman88
02-19-2012, 04:18 AM
I don't know the exact layout of that function off the top of my head but

If FindObjCustom(aX, bY ['Open','pen'], [3027509, 3883332, 1383712], 10) then

I know that last comma should be taken out. Try it like that

PatDuffy
02-19-2012, 04:24 AM
Just to clarify the reason behind his fix, for Arrays you use [](brackets) to enclose them not parenthesis.