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

Inserting more than one space in a string.

former_member195383
Active Contributor
0 Likes
974

I have a string "Text to beprinted."

How can i insert three spaces between be and printed in the string.We can not use three spaces inside single quotes.Its not working.If we ll use "Separated by spaces" it will add one space.if we want to insert two more space.How to do it.

Thanx in advance.

Rudra

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
884

Rudra,

Try this

Constants: c_space3(3) type c.

Now use Seperated by c_space3.

Regards,

Satish

I have a string "Text to beprinted."

How can i insert three spaces between be and printed in the string.We can not use three spaces inside single quotes.Its not working.If we ll use "Separated by spaces" it will add one space.if we want to insert two more space.How to do it.

Thanx in advance.

Rudra

3 REPLIES 3
Read only

Former Member
0 Likes
885

Rudra,

Try this

Constants: c_space3(3) type c.

Now use Seperated by c_space3.

Regards,

Satish

Read only

former_member386202
Active Contributor
0 Likes
884

Hi,

Splitt this string into 3 parts n store it in varaible and then concatranate into one string separated by space.

Regrds,

Prashant

Read only

Former Member
0 Likes
884

Hi Rudra,

If you give Separated by Spaces it adds only one space between them. So you need to specify the spacing .

Concatenate 'Hi' 'how' ' ' 'you' separated by space.

Then you will get the out put as

'Hi How you'.

Rewards if useful.

Thanks,

Murthy