type mismatch

maurad3r
07-19-2003, 07:16 AM
i first searched al topics with this error,
but not one of them was usefull to me..

i just don't know how i can combine a string and a integer hehe :)

example, this resolves in a mismatch error:

Let xT = Fix(X / 32)
Let yT = Fix(Y / 32)

curTileXY = xT + "." + yT

xT = xT * 32
yT = xT * 32

Iceplug
07-19-2003, 07:19 AM
So, xT and yT are integers, and curTileXY is a string?
You should use & instead of +. :)

Arjan
07-19-2003, 02:49 PM
Maybe you should convert the integers to strings or vice versa
use cstr or cint
example: curTileXY = cStr(xT) & "." & cStr(xY)
(Always convert var types, you must also do this in dot net... :D )

maurad3r
07-20-2003, 05:36 AM
So, xT and yT are integers, and curTileXY is a string?
You should use & instead of +. :)
thnx... worked grreat

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum