Skip to Content
author's profile photo Former Member
Former Member

problem with string operation

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2006 at 11:00 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2006 at 11:05 AM

    Hi,

    f1 = '|mahee'.

    replace '|' with space into f1.

    comdense f1.

    write f1.

    Regards

    amole

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 28, 2006 at 11:16 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.