Description
Point is naturally used as decimal place separator in fractional numbers but thinBasic, like PHP language, support point as string concatenation operator
Syntax
Result = Expression1 . Expression2
The + operator syntax has these parts:
Part | Description |
result | Any string variable. |
expression1 | Any string expression. |
expression2 | Any string expression. |
Returns
N/A
Remarks
Although you can also use the . or + operators to concatenate two character strings, you should use the & operator for concatenation to eliminate ambiguity and provide self-documenting code.
Restrictions
See also
Examples
DIM MyString AS STRING
DIM MyNumber AS LONG
'Results will be the string '123'
MyString = 1 . 2 . 3
MyString = 1 & 2 & 3