Application Development and Automation 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: 
Read only

print writes with??

Former Member
0 Likes
744

Can I print writes with the following?

data:

i type i.

i = 10.

do 5 times.

WRITE: i '|' , i+1 'HELLO WORLD' CENTERED COLOR 4 INTENSIFIED ON.

i = i + 20.

enddo.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
729

Hi Diego,

You can not have expression in the WRITE statement but can print value or variable containing value.

data:

i type i,

<b>v type i.</b>

i = 10.

do 5 times.

<b>v = i + 1.</b>

WRITE: i '|' ,<b> v , </b>'HELLO WORLD' CENTERED COLOR 4 INTENSIFIED ON.

i = i + 20.

enddo.

Thanks,

Vinay

Hi Diego,

You can not have expression in the WRITE statement but can print value or variable containing value.

data:

i type i,

<b>v type i.</b>

i = 10.

do 5 times.

<b>v = i + 1.</b>

WRITE: i '|' ,<b> v , </b>'HELLO WORLD' CENTERED COLOR 4 INTENSIFIED ON.

i = i + 20.

enddo.

Thanks,

Vinay

5 REPLIES 5
Read only

Former Member
0 Likes
730

Hi Diego,

You can not have expression in the WRITE statement but can print value or variable containing value.

data:

i type i,

<b>v type i.</b>

i = 10.

do 5 times.

<b>v = i + 1.</b>

WRITE: i '|' ,<b> v , </b>'HELLO WORLD' CENTERED COLOR 4 INTENSIFIED ON.

i = i + 20.

enddo.

Thanks,

Vinay

Read only

0 Likes
729

As a state with a variable the position where they must print text, without printing the position?

Read only

0 Likes
729

Do you want:

WRITE: at I  'HELLO WORLD' CENTERED COLOR 4 INTENSIFIED ON.

Rob

Read only

Former Member
0 Likes
729

See the below program and i just modified.

data: i type i.

data v type i.

i = 10.

do 5 times.

v = i + 1.

WRITE: i ,'|' , v, 'HELLO WORLD' CENTERED COLOR 4 INTENSIFIED ON.

i = i + 20.

clear v.

enddo.

Thanks

Seshu

Read only

0 Likes
729

As a state with a variable the position where they must print text, without printing the position?