INSMODE( ) Function Example

The example below uses INSMODE( ) to set the insert mode on, and then toggles the insert mode to the opposite state.

SET TALK ON
=INSMODE(.T.)  && Set insert mode on
? INSMODE( )
= INSMODE(!INSMODE( ))  && Toggle insert mode to opposite state
? INSMODE( )