Navigation:  thinBasic language > Script structure > Execution directives > #DEFAULT >

DECLARE CheckDuplicates

Previous pageReturn to chapter overviewNext page

 

Description

 

Set how DECLARE statement controls duplicated sub or function names.

 

Syntax

 

#DEFAULT DECLARE CheckDuplicates {%TRUE | %FALSE}

 

Returns

 

None

 

Parameters

 

Remarks

 

If %TRUE, duplicated names will generate a runtime error.

Default is %FALSE. First declared name will have higher priority.

 

Restrictions

 

See also

 

Examples

 

'--------------------------------------------------------------------

'--------------------------------------------------------------------