PtrDevice:IsValid Access

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:IsValid Access

Previous pageReturn to chapter overviewNext page
Type        Logic

Purpose

Returns TRUE if the PtrDevice object is valid.  The printer device is invalid when there is no default printer device selected in the Windows Control Panel, or if the printer device cannot allocate enough memory.

Example

// Is this PtrDevice a valid printer object?

if oPtrDevice:IsValid

         oPtrDevice:Print(...)

endif