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

problem with string operation

Former Member
0 Likes
453

data: f1 type string.

iam giving input as follows

f1 = '|mahee'.

my output should be

'mahee'.

can u tell me how to do\.

Thanks

Maheedhar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
424

data: f1 type string.

f1 = '|mahee'.

Possiblity one

Write: f1+1(5).

Or

DATA: LV1, LV2 type string.

SPLIT F1 at '!' in LV1 LV2.

WRITE: LV2.

if useful reward.

Vasanth

3 REPLIES 3
Read only

Former Member
0 Likes
425

data: f1 type string.

f1 = '|mahee'.

Possiblity one

Write: f1+1(5).

Or

DATA: LV1, LV2 type string.

SPLIT F1 at '!' in LV1 LV2.

WRITE: LV2.

if useful reward.

Vasanth

Read only

Former Member
0 Likes
424

Hi,

f1 = '|mahee'.

replace '|' with space into f1.

comdense f1.

write f1.

Regards

amole

Read only

anversha_s
Active Contributor
0 Likes
424

hi,

data: f1 type string.

f1 = '|mahee'.

replace all occurrences of '|' in f1 with ' '.

condence f1.

write f1.

rgds

anver

pls mark points to all helpful answers