SyntaxFix
Write A Post
Hire A Developer
Questions
The shortest way without declaring the variable is with Type Hints :
s$ = 123 ' s = "123" i% = "123" ' i = 123
This will not compile with Option Explicit. The types will not be Variant but String and Integer
Option Explicit
Variant
String
Integer