Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

String equates

 

thinBasic allows you to refer to string constants by name. Those constant values are called equates.

A string equate (constant) must start with $ sign.

 

Equates data type

 

Equates declaration has the following syntax:

 

$EquateName = StringExpression

 

Equal sign is optional, so the above sentence can also be written as:

 

$EquateName StringExpression

 

String equates are like dynamic string that can be up to approximately 2 billion characters in length.

 

Examples

 

Some equate declaration example:

 

$WINTITLE   = "My application title"

$SEPARATOR  = ","

$POSSIBLESEPARATORS = CHR$(9, 10, 13, 32)

 

Restrictions

 

1.String equates name must start with dollar sign $

2.Unlike variables, you can use an equate on the left side of an assignment statement only once.

3.If an equate has already been created, subsequent attempts to assign a new value will fail but no error will be generated

 

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software