Hi everybody,
We encountered some strange phenomenon using the PUT CONTROL statement.
When we use variables like...
def var a as char init "~033P". /* 10 cpi */
...and subsequently use ...
OUTPUT TO lpt1.
PUT CONTROL a.
DISPLAY "Hello world" WITH FRAME x.
... then everything goes fine: "hello world" is printed with 10 cpi.
But if we store the value of a in a db-field (printers.printcode) then using ...
OUTPUT TO lpt1.
PUT CONTROL printers.printcode.
DISPLAY "Test" WITH FRAME x.
... yields:
~033P
Hello world
Has anybody got an idea what causes this??
------------------
Wilbert
We encountered some strange phenomenon using the PUT CONTROL statement.
When we use variables like...
def var a as char init "~033P". /* 10 cpi */
...and subsequently use ...
OUTPUT TO lpt1.
PUT CONTROL a.
DISPLAY "Hello world" WITH FRAME x.
... then everything goes fine: "hello world" is printed with 10 cpi.
But if we store the value of a in a db-field (printers.printcode) then using ...
OUTPUT TO lpt1.
PUT CONTROL printers.printcode.
DISPLAY "Test" WITH FRAME x.
... yields:
~033P
Hello world
Has anybody got an idea what causes this??
------------------
Wilbert