A single-record form displays data from a single-record table, view or CursorAdapter (that is, a table, view or CursorAdapter designed to contain only one record). Single-record tables, views and CursorAdapters usually store system information needed to control the operation of an application.
The VPM Enterprise Form_SingleRecord class is a subclass of the Form_Toolbar class. Use this class to create a single-record form.
Tip: Use the ProMatrix Basic Form Builder to build a single-record form.
Cancel CommandButton: The Form_SingleRecord class contains a Cancel CommandButton with code in its Click event that cancels changes made to the current record and closes the form.
OK CommandButton: The Form_SingleRecord class also contains an OK CommandButton. The default code in the Click event of the OK button saves changes made to the current record and closes the form.
Example: The Environment form reached from an application’s Admin menu is an example of a form based on the Form_SingleRecord class.