2005 Dec 12 3:01 PM
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
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
2005 Dec 12 3:03 PM
try
txt = param.
ex:
param = 10.
data : txt type string .
txt = param.
2005 Dec 12 3:06 PM
Hi Abhi,
Data : txt1(10).
txt1 = param.
Concatenate 'Value of' txt1 into txt separated by space.
Write : txt.
Regards,
Sudhakar.
2005 Dec 12 3:15 PM
2005 Dec 12 3: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
2005 Dec 13 12:48 AM
you could do:
data text type string value 'value of &'.
replace '&' with param into text.
condense text.
write:/ text.
2005 Dec 13 4:35 AM
Hi
parameters: param(10).
Data : txt1(20).
Concatenate 'Value of' param into txt1 separated by space.
Write 😕 txt1.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |