The information in this article applies to:
SYMPTOMSThe SYS(6) function returns an empty string in Visual FoxPro 5.0. In earlier versions of FoxPro, the function returned information on the current printer port or "PRN." WORKAROUNDNo Visual FoxPro command exists that returns the current printer port. Some Application Program Interface (API) calls exist that return information that might be useful. See the FoxPro Help file and search on the keyword API. STATUSThis behavior is by design. MORE INFORMATION
In FoxPro for MS-DOS, the SYS(6) function returns the port that FoxPro uses
for printing. Under FoxPro for Windows 2.x and Visual FoxPro 3.0, the
SYS(6) function returns "PRN" regardless of the port (if any) the driver is
using. However, this is potentially misleading under Windows. PRN generally
means the port LPT1. Windows allows a printer driver to direct its output
to a variety of ports. Therefore, returning "PRN" does not tell you which
port holds the printer driver connection.
Steps to Reproduce BehaviorIn the Command window, type the following lines of code:
The variable x contains an empty string when initially set to SYS(6). After
redirecting the printer to a file, the SYS(6) function returns the path and
file name of Test.txt.
Additional query words: VFoxWin kbdsd
Keywords : kbVFp500 kbVFp600 FxprgGeneral |
Last Reviewed: December 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |