cancel
Showing results for 
Search instead for 
Did you mean: 

passing variable to &space( )&

Former Member
0 Kudos

Dear All,

How can i pass a variable to &space(---)& command in Script editor.

regards

samarendra

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

It cannot work that way. Nested variables are not allowed.

However there is another (very dumb) method

case &v_space&

when 1.

&space(1)&

when 2

&space(2)&

etc

etc

endcase

This will work.

Gr., Frank

Former Member
0 Kudos

&space(&v_space&)& will give the 10 space value in the Script print preview .

Regards,

Joan

Former Member
0 Kudos

Hi,

&space(10)& will give the space of 10 characters in the print preview of the script.

if this is not the answer you are looking. can you be a little clear about the question.

regards

sarves

Former Member
0 Kudos

hi sarves,

data: v_space type i value 10.

can i use &space(v_space)& in this format in the script editor.

regards

samarendra

Former Member
0 Kudos

Hi,

No this won't be possible as far as i my knowledge. Because in the scripts every value is considered as a character and when we pass the value dynamically into a system symbol it will consider it as a character and results in no spaces but displays it as

&space(   10)&

if we pass the value like this it will give the above result

&space(&v_space&)&

in the preview.

regards

sarves