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

Passing Value Dynamically in a string

hi All ,

i have a requirement in which i have to pass value of a parameter dynamically to a string

e.g.

param = 10.

data : txt type string .

txt = 'value of param'.

should give a result

value of 10.

here i need to have the value 10 of param in the string ,

how can this be done dynamically

thanks in advance

Abhishek

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2005 at 03:03 PM

    try

    txt = param.

    ex:

    param = 10.

    data : txt type string .

    txt = param.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2005 at 03:06 PM

    Hi Abhi,

    Data : txt1(10).

    txt1 = param.

    Concatenate 'Value of' txt1 into txt separated by space.

    Write : txt.

    Regards,

    Sudhakar.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 12, 2005 at 03:07 PM

    Hi Abhishek,

    if you know where is the word 'param' in the sentence, you could play with the field symbols.

    Good luck 😉

    Frédéric

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 13, 2005 at 12:48 AM

    you could do:

    data text type string value 'value of &'.

    replace '&' with param into text.

    condense text.

    write:/ text.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2005 at 04:35 AM

    Hi

    parameters: param(10).

    Data : txt1(20).

    Concatenate 'Value of' param into txt1 separated by space.

    Write :/ txt1.

    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.