06-08-2006 10:11 AM
Hi,
How can we make text element dynamic?
Ex:
If I want a text "Consider date g_date" where g_date is populated from program. Can I pass g_text like <b>text-001 g_text</b>?
Thanks.
06-08-2006 10:16 AM
Use a place holder like &1.
Then whenever you are using the text element
you could use TEXT-001 with g_text.
Regards,
Ravi
06-08-2006 10:33 AM
I gave
<b>l_msg_txt = text-009 with g_prev_date .</b>
<b>It is showing compilation error:
Incorrect arithmetic or bit expression: Instead of "WITH", an operator
(+, -, *, /, ... or BIT-AND, BIT-XOR, BIT-OR) was expected.</b>
Actually my requirement is to use this in a message. I don't want to create message class. Is it possible?
<b>message l_msg_txt type 'I'.</b>
06-08-2006 10:37 AM
Hi,
Use the Concatenate option,
data : g_text(10)
g_text = g_date
concatenate text-001 g_text into im_text separated by space.
Sreedhar
06-08-2006 11:35 AM
If you need it for a message, just use a predefined generic one, i.e
MESSAGE s000(0k) WITH 'Consider date' gdate '' ''.
Then you don't even have to define 'Consider date' as a text-symbol. But you can. Then it is
MESSAGE s000(0k) WITH text-001 gdate '' ''.
Regards,
Clemens