# MX\_GETLOKSER, MX\_SETLOKSER

> [HTML Version](mx_get_set_lokser.htm)

**xcall MIAMEX, MX\_GETLOKSER, lokflag**

**xcall MIAMEX, MX\_SETLOKSER, lokflag**

MX\_GETLOKSER (MIAMEX 50) returns a flag indicating if [LOKSER](lokser_sp.md) is active or not. MX\_SETLOKSER (MIAMEX 51) allows you to turn LOKSER on or off. 

**Parameters**

_lokflag_  (F6)  \[out for GET, in for SET\]

SET: set to 0 to turn LOKSER off, or non-zero to turn it on. GET: will be returned as 0 if LOKSER is not active, while a non-zero value indicates that it is active.

**Comments**

You may also use SET.LIT to query or change the [LOKSER](lokser_sp.md) status.