SET AUTOFORMAT

From Recital Documentation Wiki
Revision as of 16:41, 12 November 2009 by Helengeorge (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Enable automatic screen format file opening


Syntax

SET AUTOFORMAT ON | OFF | (<expL>)


See Also

APPEND, CHANGE, EDIT, FMT(), INSERT, QUERY, SET FORMAT, USE


Description

The SET AUTOFORMAT command is used to enable or disable automatic screen format file opening. If SET AUTOFORMAT is ON, an available screen format file (.fmt) with the same basename as the table will be opened automatically when the table is opened. If SET AUTOFORMAT is OFF, screen format files must be opened explicitly with the SET FORMAT command.

This command allows the optional <expL> to be evaluated. If a value of .T. is returned, AUTOFORMAT is set ON, if a value of .F. is returned, AUTOFORMAT is set OFF. Note that <expL> should be enclosed in round brackets. By default, SET AUTOFORMAT is ON.


Example

set autoformat on
use product.rdb
? fmt()
product.fmt


Products

Recital