How to remove extra line of space when using PUT or Display

Kalyansid

New Member
Hi,

I am stuck with this simple but tricky instance. I am trying to display a chinese column-labels and below them the english labels. I wrote it as below and it displays a extra line between the chinese and english labels.

PUT UNFORMATTED
v-per1 AT 2
v-day1 AT 6
v-vchrnum1 AT 10
v-desc1 AT 23
v-debitlb AT 69
v-credit1b AT 89
v-balance1 AT 107.
The above contains the chinese labels. and below displays the values with frame containing english column labels.
DISPLAY xagl_per @ v-per
xagl_day @ v-day
xagl_vonbr @ v-vchrnum
xagl_desc @ v-desc
xagl_debit @ v-debit
xagl_credit @ v-credit
xagl_bal @ v-balance
WITH DOWN FRAME b WIDTH 120.
DOWN WITH FRAME b WIDTH 120.

Output header:-

Ô ÈÕ Æ¾Ö¤ ½âÊÍ ½è·½

M D Voucher Explanation Debit

What might be causing the extra line of space between the above?
 
It's the display-statement causing the problem. The top of the frame.

Have you considered trying something like this?

Code:
def var hch1 as char no-undo init 'a'.
def var hch2 as char no-undo init 'b'.
def var hch3 as char no-undo init 'c'.

def var hen1 as char no-undo init '1'.
def var hen2 as char no-undo init '2'.
def var hen3 as char no-undo init '3'.

def var v-per as char no-undo.
def var v-day as char no-undo.
def var v-vchrnum as char no-undo.

form v-per      at 1  
     v-day      at 20  
     v-vchrnum  at 40 

header hch1 at 1
       hch2 at 20
       hch3 at 40
       hen1 at 1
       hen2 at 20
       hen3 at 40
    with frame b down no-labels.

DISPLAY 
 'r1' @ v-per
 'r2' @ v-day 
 'r3' @ v-vchrnum
WITH DOWN FRAME b WIDTH 120.
DOWN WITH FRAME b WIDTH 120.
 
Back
Top