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: 

Avoiding last character in a line

Former Member
0 Kudos

Hi,

I am printing orders as 00123, 00124, 00125, in this i want to remove the last character , besides 00125.

I mean after the end order number comma should not print. I am printing this in an email.

Regards

VEnk@

5 REPLIES 5

Former Member
0 Kudos

Hi..

You can use Replace All Occurences Of.. Pass your requirement to be replced like in ur case '*' or ',' and replace it with ' '.Means Space..

andreas_mann3
Active Contributor
0 Kudos

coul you post a code snip?

A.

try to use commands as FIND [{FIRST OCCURRENCE}| and replace / translate...

0 Kudos

You only have to use

REPLACE ALL OCCURRENCES OF '*' IN V_STRING WITH SPACE .

Where v_string = '00123, 00124, 00125,'.

This will make the value of V_string = '00123, 00124, 00125,'

Edited by: Kapil Sharma @ Steria on Jan 28, 2010 12:46 PM

Former Member
0 Kudos

If the data looks like you have it posted....

replace ',' with space into <fieldname>....whatever your variable name is

Former Member
0 Kudos

Hi All,

I have actually want to show last comma as BOLD but everyone is thinking as *, And my issue is to avoid last Comma...So i took a variable and in that took the total count of order records and kept a check inside a loop as if count matches don't append Comma.

There is no point of replace.

Regards

VEnk@