I haven't used variable types much... but if A% is a number variable/array, you might need to use VAL() to convert the $tring to a number or integer.