[futurebasic] Re: [FB] Dot Matrix Printing Problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2000 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Fri, 2 Jun 2000 16:09:50 +1200
>I am in the process of converting a QuickBASIC (QB) point of sale program
>to FB-II (using PGPro).
>
>In the QB environment, I am able to open the cash drawer by using  LPRINT
>CHR$(7).

>However, when I try to use the same scheme to open the drawer
>  PRINT #gPortID, CHR$(7) ;
>nothing happens.


It's just possible that your cash drawer really wants CHR$(135), and that
QB sets the most significant bit on, silently converting CHR$(7) to
CHR$(135).
Worth a try:

PRINT #gPortID, CHR$(135) ;

Robert P.