[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SAVE/RESTORE CAPTURE
Saves/Restores current capture settings
------------------------------------------------------------------------------
Syntax
SAVE CAPTURE [ PRN | LPT1 | LPT2 | LPT3] TO memvar
RESTORE CAPTURE [ PRN | LPT1 | LPT2 | LPT3] FROM memvar
Arguments
memvar = variable name
Returns
Description
This command saves the current capture settings to a memvar or restores
them from a memvar. Note that the restore does not ensure that the
capture gets turned back on, it only resets the capture flags.
Examples
#include "netto.ch"
FUNCTION Main()
LOCAL aFlags
SAVE CAPTURE PRN TO aFlags // save the current settings
CAPTURE PRN NOFORMFEED NOTABS NOBANNER // start the capture
. . . print some stuff . . . // go do your print stuff
ENDCAP PRN // end the capture
RESTORE CAPTURE PRN FROM aFlags // restore flags
IF aFlags[CF_LPTCAPTUREFLAG] // check if capture was on
CAPTURE PRN // if so, reset it
ENDIF
RETURN (NIL)
Source: N:\SRC\PRINT\CAPFLAGS.PRG
Author: Kevin Maher/Steve Tyrakowski
See Also:
fn_gDefCpF()
fn_sDefCpF()
fn_sSPCapF()
CAPTURE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson