Switch to: V10V9V8V7V6V5

Form Editor - Methods

In addition to predefined methods, the user can create own form methods.

The interface is divided into four areas:

  • The Inspector and Database tabs.
  • The list of methods.
  • The method text.
  • The snippets.

Inspector and Database Tabs

These tabs can be used to review the form structure and database schema during writing the method text.

Methods List

It contains the list of existing methods for the form being edited.

At the bottom of the list, there are two buttons: to add a new method and delete a selected one.

The context menu consists of the four items:

  • Copy
  • Cut
  • Rename - Rename the selected method.
  • Delete - Delete the selected method.

Method Text

This area shows the text of the selected method. The text is syntax-highlighted.

To allow the method to get parameters, it's text should be constructed the next way

function( arg1, arg2, ..., argN )
{
...
}

For example:

function( arg1, arg2 )
{
  return arg1 + arg2;
}

Snippets

The list of snippets contains templates to generate code for most common tasks.

The snippets are divided into few groups:

  • Database - Operations on the database.
  • Dialog – Actions with the dialog.
  • Field – Operations with the table field.
  • File – File-related operations.
  • Standard Dialogs – Actions to present standard dialogs.
  • Table – Operations with the database field.

The snippets can be used as a help for writing own code.

Some snippets require additional information, so helper dialog will be shown to get it.

The context menu of the snippet consists of two items:

  • Insert – Inserts a snippet at the current position in the text editor.
  • Copy – Copies the snippet text to the clipboard.

To insert a snippet you can double-click it or use a context menu.