Difference between revisions of "SET AUTOFORMAT"

From Recital Documentation Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET AUTOFORMAT=
 
 
 
==Class==
 
Screen Forms
 
 
 
 
==Purpose==
 
==Purpose==
 
Enable automatic screen format file opening
 
Enable automatic screen format file opening
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
APPEND, CHANGE, EDIT, INSERT, QUERY, USE, FMT(), SET FORMAT
+
[[APPEND]], [[CHANGE]], [[EDIT]], [[FMT()]], [[INSERT]], [[QUERY]], [[SET FORMAT]], [[USE]]
  
  
Line 25: Line 18:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
set autoformat on
 
set autoformat on
 
use product.rdb
 
use product.rdb
 
? fmt()
 
? fmt()
product.fmt</pre>
+
product.fmt</code>
  
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|AUTOFORMAT]]
 
[[Category:Set_Commands|AUTOFORMAT]]
 +
[[Category:Screen Forms]]
 +
[[Category:Screen Forms Set Commands]]

Latest revision as of 16:41, 12 November 2009

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