How to convert Variables to String with CStr() and Str()


cstr.png
' Gambas class file
PUBLIC SUB Button1_Click()
   Label2.Text = Str(4.6)
   Label4.Text = CStr(4.6)
   Label6.Text = Str(23456)
   Label8.Text = CStr(23456)
   Label10.Text = Str(TRUE)
   Label12.Text = CStr(TRUE)
END

-- JochenGeorges - 28 Dec 2004