Formatting reports / Escape sequences / Axiant Quiz
Chris Sharman
chris.sharman@ccagroup.co.uk
Wed, 07 May 2003 09:08:36 +0100
oh@scanconsult.dk wrote:
> Hi,
>
> In order to print a very wide report (165 chars), I am (foolishly?) trying
> to embed an escape sequence in my Axiant Quiz report - the good ol'
> PowerHouse way :
>
> access tbl_misc
> choose f_key "UNIQUERECORD"
>
> def esc_num int*2 = 27
> def esc char*1 = char(esc_num)[1:1]
This is an old chestnut. It's a big-endian/little-endian issue.
char()[2:1] will work (on some machines).
int*2 size 1 will work (on other machines).
The only truly universal & portable solution is:
def esc_num int*4 size 2 = 27*257 ; 27 in both bytes
def esc char*1 = char(esc_num)
I forget who first proposed this one, but it ought to be a FAQ.
Chris
-----------------------------------------------------------------------
Any views expressed in this message are those of the sender and not
necessarily those of CCA Group. The unauthorized use, disclosure,
copying or alteration of this message is forbidden. The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed. Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.