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