I’m sure this is simple to do but I’m struggling to get this work, I’ve tried using convert.tostring, decimal.tostring, ctype(object, type) and cstr(object) but without success. I guess I’m trying to change the decial object to a string object and then assign it a value of empty string but always get type mismatch error.
Dim testdecimal as decimal = 0.0
testdecimal = Cstr(testdecimal)
testdecimal = string.empty
Your variable is a
Decimal.It cannot hold a string.
You need to declare a separate variable
As Stringto hold the string.