<<

Contents

Search

>>

 

GET_TREEVIEW

 

 

Function

 

 

Syntax:

GET_TREEVIEW(<String Variable>,<Maximum Number>[,<Handle>])

 

<String Variable>

= <STRING-VARIABLE>

<Maximum Number>

= <NUM-EXPRESSION>

<Handle>

= < NUM-EXPRESSION>

 

 

Meaning:

Copies the content of a Treeview to an array.

 

The elements of a Treeview are returned in the same format that is used to create a graphic tree with TREEVIEW .

 

As <String-Variable> the name of an array must be specified without indices.

 

GET_TREEVIEW returns the following results:

>0

Number of elements that have been written to the array.

7906

No Treeview active

7911

Treeview has more than <Maximum number> elements.

-1

Runtime error

 

Parameter:

String Variable

Name of array

Maximum Number

Specifies the maximum number of elements that can be put into <String-Variable>.

Handle

Window depth or handle of a split window or handle of a TREEVIEW.

 

Sample:

DIM T$(1000)

H% = GET_TREEVIEW(T$,1000)

IF H% <> 0

THEN ... Error ...

ENDIF

 

See also:

TREEVIEW

GET_TREEVIEW_SIZE

TREEVIEW_INSERT

TREEVIEW_CHANGE_IMAGE

TREEVIEW_DELETE

EBUS_TREEVIEW

EBUS_TREEVIEW$