Skip to Content
0
Former Member
Sep 30, 2008 at 09:27 AM

Replace a string in a character field with a amount value

18 Views

Hi,

I have a text field in which I want to replace a string with an amount value. while am trying to replace it , it gives me some empty space.

For example:

amount = '1200 '

message = 'The STIP amount is &1'

in my code :

replace &1 with message into message.

the result is

'The STIP amount is 1200 '

I dont want the space after 1200.

I tried for condense no-gaps also but it is not working ..

What may be the problem?

Can you suggest some solution for this?

Regards,

Vimala