cancel
Showing results for 
Search instead for 
Did you mean: 

form how to suppress a blank line

Former Member
0 Kudos

hi

i am printing a lable code

its a encrypted format

i need a code to suppress the blank line3 based on conditon if it is blank.

so id line 3 is blank it should not diplay the blank line. that is my requirment.

pls suggest

regards

Arora

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

This can be done in paragraph format..

goto the paragraph format applied for that line, in standard attibutes, tick "No blank lines".

Regards,

Sairam

Former Member
0 Kudos

hi canot do in paragraph format

as its a lable script and encrypted format ...

STX><ESC>F0<DEL>&TO_ADRS-LINE0&<ETX>

STX><ESC>F1<DEL>&TO_ADRS-LINE1&<ETX>

STX><ESC>F2<DEL>&TO_ADRS-LINE2&<ETX>

STX><ESC>F3<DEL>&TO_ADRS-LINE3&<ETX>

STX><ESC>F4<DEL>&TO_ADRS-LINE4&<ETX>

STX><ESC>F6<DEL>&TO_ADRS-LINE5&<ETX>

here address line 3 is blank so just want to put if condiont with code

for addres line3 if blank then suppress it....

regards

Arora

former_member196280
Active Contributor
0 Kudos

Try like this it will work

IF TO_ADRS-LINE0 NE ' '

STX><ESC>F0<DEL>&TO_ADRS-LINE0&<ETX>

ENDIF.

IF TO_ADRS-LINE1 NE ' '

STX><ESC>F1<DEL>&TO_ADRS-LINE1&<ETX>

ENDIF.

IF TO_ADRS-LINE2 NE ' '

STX><ESC>F2<DEL>&TO_ADRS-LINE2&<ETX>

ENDIF.

IF TO_ADRS-LINE3 NE ' '

STX><ESC>F3<DEL>&TO_ADRS-LINE3&<ETX>

ENDIF.

IF TO_ADRS-LINE4 NE ' '

STX><ESC>F4<DEL>&TO_ADRS-LINE4&<ETX>

ENDIF.

IF TO_ADRS-LINE6 NE ' '

STX><ESC>F6<DEL>&TO_ADRS-LINE5&<ETX>

ENDIF.

Regards,

SaiRam

Former Member
0 Kudos

hi sai ram

i tried that if statement it is not workig in the label script

no syntex error but it is not suppressing the blank line in output

pls suggest some code to suppress the blank line

regards

Arora

Answers (0)