Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_saveattr() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_SAVEATTR()


Returns

Current screen attributes, as a string.


Description

Used to save the current screen attributes to a memory variable, which 
can later be used with N_RESTATTR() to restore the screen attributes. 
The variable requires less than 100 bytes.

This function can be used on its own or in combination with Clipper's 
SAVE SCREEN or SAVESREEN(). The Clipper command and function save the 
screen contents, while N_SAVEATTR() saves the screen attributes, 
including all colors and intensity, the cursor location, size and 
visibility, the scoreboard, and delimiters.


Example

* F1 help procedure
PROCEDURE Help
   LOCAL cBuffer
   cBuffer = N_SAVEATTR()
   SET COLOR TO g+/r
   SET CURSOR OFF
   @ 23, 0 SAY 'HELP is under construction.'
   N_RESTATTR(cBuffer)
RETURN




See Also: N_RESTATTR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson