Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to write a horizontal line insapscript(not using &ULINE&)

aris_hidalgo
Contributor
0 Kudos

Hello experts,

I am presently having a problem on why my statement &ULINE& does is always shorted than the width of my MAIN window no matter what I do. So now I want to experiment on how to write a horizontal line without using the ULINE statement. By the way, the width of my MAIN window is 78 CH. A while ago I experimented with the length of the uline but no matter what length I gave it its always shorter than the width of my main window.

Again, thank you guys for your time and take care!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Viraylab,

The <b>&ULINE(X)&</b> may solve your problem.

Specify proper value for X which can fill your main window length.As you specified that your main window size as 78,try &ULINE(78)&.

Without using ULINE,then you need to write your line with some dashes which fits main window length.

Try as follows in your layout

<b>/: -


</b>

But this is not advisable.

Thanks,

Vinay

7 REPLIES 7

Former Member
0 Kudos

Hi Viraylab,

The <b>&ULINE(X)&</b> may solve your problem.

Specify proper value for X which can fill your main window length.As you specified that your main window size as 78,try &ULINE(78)&.

Without using ULINE,then you need to write your line with some dashes which fits main window length.

Try as follows in your layout

<b>/: -


</b>

But this is not advisable.

Thanks,

Vinay

0 Kudos

Hi,

As i've said in my post, the statement &ULINE& is not working properly since no matter what length I give it is always shorter than the width of the MAIN window...

0 Kudos

hi Viray,

Use this statement

Draws a horizontal line across the complete top edge of the window.

<b>/: BOX WIDTH 0 TW FRAME 10 TW</b>

Regards,

Santosh

0 Kudos

Hi,

Horizontal line can be inserted using BOX command by keeping the height as 0. Imagine Horizontal line as a box height 0 and with a specified width.

So the syntax will be

<b>BOX WIDTH 12 CM HEIGHT 0 CM FRAME 10 TW INTENSITY 1.</b>

Regards,

SP.

0 Kudos

Use BOX command and use position to place it in window.

take care of x and y coordinates and make sure that they r in correct position.

former_member181962
Active Contributor
0 Kudos

HI Viraylab,

I think the paragraph format you are using is having some indentation (Some space in front of the line starting and end of the line).

Create a new paragraph format which doesn't have any space in front of the line and at the end of the line.

Regards,

Ravi

Former Member
0 Kudos

use below for horiizontal line

/:   POSITION XORIGIN '2.0' CH YORIGIN '60.2' LN   
/:   SIZE WIDTH '75.0' CH HEIGHT '0' LN            
/:   BOX FRAME 10 TW

use below for vertical line.

/:   POSITION XORIGIN '2.0' CH YORIGIN '60.2' LN   
/:   SIZE WIDTH '75.0' CH HEIGHT '0' LN            
/:   BOX FRAME 10 TW                               

rgds,

TM