<cStringBuilderArray>.Init

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > StringBuilder > cStringBuilderArray Class > <cStringBuilderArray> Methods >

<cStringBuilderArray>.Init

 

Description

 

Set initial number of elements of internal elments storage.

 

Syntax

 

<cStringBuilderArray>.Init(InitialSize)

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

InitialSize

Number

No

Initial number of elements

 

 

Remarks

 

Standard initial number of elements of elements storage is 1000 slots. As long as new elements are added, if more slots are needed internal storage is increased.

In case of many thousands elements, setting a more real initial number of elements will reduce the need to increase internal storage reducing loading time and increasing speed execution.

 

Restrictions

 

MUST be executed before any other method.

 

See also

 

Examples