Command Window

From Lianjapedia
Jump to: navigation, search
Bm-noteicon.png
Quick Start Guide

Select Command Window from the Window menu in the system MenuBar at the top.
The Command Window will popup on top of the main App Builder Window.
It will stay "on top" even in the runtime view.
The CodeAssistant for Lianja/VFP is there to help you be more productive.


Bm-workspaces.png

You can type Lianja/VFP, JavaScript, Python or PHP commands directly into the Command panel and see the output in the Output panel.

You can delete text by pressing ESC if you haven't already pressed ENTER to execute the command.

You can re-execute a previous command by navigating up to it in the command history using the Up and Down arrow keys or placing the cursor anywhere on the command line, and then pressing ENTER.

The contents of the command window are saved when you exit the App Builder and restored when you run it again.

Bm-noteicon.png
Pro Tip

As a power user you can create, edit, compile and run script files in the command window.
ed filename.ext

Bm-noteicon.png

You can view the documentation page for any Lianja/VFP command or function like this:
help commandname
help functionname()

All Lianja/VFP commands and functions can be used in the Lianja/VFP Command Window apart from flow control and looping commands and others that form a begin...end statement block.

Note:

  • & macro substitution is supported from v4.1.

Note:

  • The semi-colon ';' line continuation character is not supported.
Bm-noteicon.png
Pro Tip

Press Alt-e to open a Lianja.VFP Command editor window. This allows you to type multiple line commands and/or commands with line continuation characters and run them.

Enhancements in Lianja v5.3

From v5.3 a keyboard icon is displayed in the Command Window header and can be used to open the Command editor window. If any text is already selected in the Command Window it is loaded into the Command editor window.

Command Window Editor


The following buttons are displayed, including the options to save and run the code and open existing script files.

Button Description
Open... Open a script file. An Open dialog will be displayed allowing directory navigation and a file to be selected.
Save Save the currently open script file.
Save As... Save the current editor contents to a script file. A Save file dialog will be displayed allowing directory navigation and a file to be selected or a new filename entered.
Run Run the current editor contents.
Clear Clear the editor contents.
Cancel Close the Command editor window.