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: 

Inserting more than one space in a string.

former_member195383
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Rudra,

Try this

Constants: c_space3(3) type c.

Now use Seperated by c_space3.

Regards,

Satish

3 REPLIES 3

Former Member
0 Kudos

Rudra,

Try this

Constants: c_space3(3) type c.

Now use Seperated by c_space3.

Regards,

Satish

former_member386202
Active Contributor
0 Kudos

Hi,

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

Regrds,

Prashant

Former Member
0 Kudos

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