Home > Available Help Files > PC-DMIS BASIC Language > Language Reference A – Z > CStr Function > Example - CStr Function
Current Help File: PC-DMIS Basic (View Core Help)
Example - CStr Function
Sub Main
Dim Y As Integer
Y = 25
Print Y
If VarType(Y) = 2 Then
X = CStr(Y) 'converts Y To a Str
X = X + "hello" 'It is now possible to combine Y with strings
Print X
End If
End Sub