Difference between revisions of "RESTORE COLOR"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
 
Line 1: Line 1:
 
 
 
==Purpose==
 
==Purpose==
 
Restore saved color schemes
 
Restore saved color schemes
Line 35: Line 33:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Screen Forms]]
 
[[Category:Screen Forms]]
 
[[Category:Screen Forms Commands]]
 
[[Category:Screen Forms Commands]]

Latest revision as of 16:16, 12 November 2009

Purpose

Restore saved color schemes


Syntax

RESTORE COLOR FROM <memvar> | FILE <.col filename> | (<expC>)


See Also

@...FILL, @...GET, @...TO, ISCOLOR(), SAVE COLOR, SET COLOR, SETCOLOR()


Description

The RESTORE COLOR FROM command allows the current color scheme to be changed to a previously saved color scheme.

FROM <memvar>

The FROM <memvar> clause can be used to restore the color scheme from a memory variable that was saved with the SAVE COLOR TO <memvar> command.

FROM FILE <.col filename>

The FROM FILE <.col filename> clause can be used to restore the color scheme from a color file. This file must have been created with the SAVE COLOR TO FILE <.col filename> command. The file name can be substituted with an <expC>, enclosed in round brackets, which returns a valid filename. If no file extension is specified, '.col' is assumed.


Example

save color to m_old_color
set color
// Restore color scheme from a memory variable
restore color from m.m_old_color
// Restore color scheme from a color file
restore color from file payroll.col


Products

Recital