Examples: String data type

' In this example, the variable-length String variable 
' firstName and the fixed-length String variable homeState are 
' explicitly declared and assigned appropriate String values. 
' The variable adStreet is implicitly declared to be of type 
' String by the $ suffix character.
' Explicitly declare a variable-length String variable.
Dim firstName As String
firstName$ = "Mark"
' Explicitly declare a fixed-length String variable.
Dim homeState As String * 4
homeState$ = "  MA"
' Implicitly declare a variable-length String variable.
adStreet$ = "123 Maple St."
Print firstName$   ' Prints "Mark"
Print adStreet$; homeState$   ' Prints "123 Maple St.  MA"