asString
Top  Previous  Next

val = asString(expr) 

Converts argument to string.

Parameters
 
expr  
 
Any expression.  

Remarks

Use asString if you want to be sure that a value is string. If a variable was not declared with Dim then it can contain value of any type and can behave in different way in expressions.  

Example

str1 = 123.456  
str2 = 123  
print str1 + str2         ' result is 246.456  
print asString(str1) + asString(str2)   ' result is "123.456123"