Navigation:  thinBasic language > Operators > Arithmetic >

Operator (.)

Previous pageReturn to chapter overviewNext page

 

Description

 

Point is naturally used as decimal place separator in fractional numbers but thinBasic, like Php, support point as string concatenation operator

 

Syntax

 

Result = Expression1 . Expression2

 

The + operator syntax has these parts:

 

PartDescription
resultAny string variable.
expression1Any string expression.
expression2Any 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

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com