<<

Contents

Search

>>

 

GET_LOCATION$

 

 

Function

 

 

Syntax:

GET_LOCATION$(<Type>,<Handle>)

 

<Type>

= <NUM-EXPRESSION>

<Handle>

= <NUM-EXPRESSION>

 

 

Meaning:

Returns the position of the window which is identified by <Handle>.

 

GET_LOCATION$ returns the position in rows and columns, separated by ";".

 

<Type> specifies whether the absolute or relative position to the main window is returned:

 

Typ

GET_LOCATION$ returns as result

0

absolute position on screen in pixel

1

relative position to the client area of the main window in rows and columns

sonst

relative position to the main window in rows and columns

 

Parameter:

Type

Type

Handle

Window depth or handle of a WINDOWCALL Window

 

Sample:

POS$ = GET_LOCATION$(1,1)

ROW = VAL(SUBSTR$(POS$,";",1))

COLUMN = VAL(SUBSTR$(POS$,";",2))

 

See also:

GET_MAINCOORDINATE

SET_LOCATION