‎2007 Apr 17 8:13 AM
Hi
I want the user to be able to specify the length of a message based on a predefined string - 'abc' f.ex. This means that the user choose how many occurrences of 'abc' there should be in the message. For this I need to concatenate 'abc' with 'abc' n-number of times. I have tried all posts regarding concatenation, but still no luck. How can you do this in a 'do' loop f.ex? If I say <b>CONCATENATE predef_message ' ' INTO final_message</b> the final_message is not "growing" but rather reset every time the loop is executed...
Thanks in advance!
Ole
‎2007 Apr 17 8:15 AM
hi,
change the code line to
CONCATENATE <b>final_message</b> ' ' predef_message ' ' INTO final_message
regards,
Navneeth.K
‎2007 Apr 17 8:15 AM
hi,
change the code line to
CONCATENATE <b>final_message</b> ' ' predef_message ' ' INTO final_message
regards,
Navneeth.K
‎2007 Apr 17 8:15 AM
try
loop.
Concatenate 'abc' pre_msg into pre_msg seperated by space.
endloop.
Do not initialize the pre_msg inside the loop.
Regards,
Amit
Reward all helpful replies.
‎2007 Apr 17 8:19 AM
Hiii..
Every time you declare the concatenate you must specify the final_message before 'into ' in your statement .Other wise it will take the value of new concatenated message.
Try this concatenate final_message predef_message ' ' into final_message.
regards,
veeresh
‎2007 Apr 17 8:22 AM
Hi,
CONCATENATE predef_message ' ' INTO MESSAGE. " MESSAGE is a charecter tyoe field.
CONCATENATE final_message MESSAGE INTO final_message .
Regards
Sudheer