DECLARE CheckDuplicates

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Script structure > Execution directives > #DEFAULT >

DECLARE CheckDuplicates

 

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

 

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

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