Originally Posted By: 5861king
So i take it the varible i was useing was not in a string format is that correct?


Correct.

VarTypeName() reported it as a decimal, which is not a valid KiXtart data type. KiXtart only supports variants with sub-types of String, Integer and Double.

When you use non-intrinsic objects you can get back a wider variety of types and KiXtart will do it's best to convert to a supported type when you reference it. Depending on the context if you are reusing the object then KiXtart may just pass it on as it is.

In this case we use CStr() to explicitly convert the value to a string to override the default action.