PROBLEM

&SETKEY command does not assign function keys

Last Published: April 25, 2020

Description

SML's &SETKEY command does not allow any function key to be set. Another common problem is that &SETKEY does not work if used in a compiled SML.

Cause

ANSI.SYS is either not present in the CONFIG.SYS file, or it is not getting
recognized.

Solution or Workaround



Make sure that the following line or its equivalent is present in the CONFIG.SYS file:

Code:
DEVICE=C:\DOS\ANSI.SYS


If the SML is to be compiled, use the following syntax to use the &SETKEY function within a compiled SML:

Code:
&system "&setkey f1 commands &cr

Article ID:000005468

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic