Please enable JavaScript to view this site.

A-Shell Reference

The exitcode parameter serves the same function as the corresponding parameter of the same name in routines such as INFLD and XTREE, i.e. it returns a code indicating how the control was exited, as summarized in following table. See the flags parameter for enabling other exit keys.

Exitcode

Meaning

0

Normal exit (Escape w/ update, Enter with TXF_ENTESC)

1

Cancel (Escape w/o update)

10

Abort (Ctrl+C)

11

Timeout; see TXC.timeout in the txtctl parameter.

-35

Shift+Tab (if TXF_TAB)

-40

Ctrl+Left-Arrow (if TXF_LEFT)

-41

Ctrl+Right-Arrow (if TXF_RIGHT)

-42

Ctrl+Up-Arrow (if TXF_UP)

-44

Tab (if TXF_TAB)

-45

Ctrl+Home (if TXF_HOME)

-46

Ctrl+End (if TXF_END)

-47

Del (if TXF_DEL)

-49 to -74

Another object clicked

-75

File(s) dragged-and-dropped on to a control with the WS_EX_ACCEPTFILES attribute. See MX_DRAGDROP.

-76 - 99999

Another object clicked

99

Unable to link to DLL

98

Invalid TXC.ctlno

97

 

96

Unable to load (or save) text file

95

Unable to allocate or lock memory

94

Unable to load text buffer into control

93

Control deleted by TXC.delctlid