Posted: Mon Feb 05, 2007 12:15 pm Post subject: difficulty concatenating strings
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
I need to create a resulting string from an array of items by concatenating them one by one, with '|' as delimiter:
declare M integer cardinality(InputBody.Order.Item[]);
declare s character InputBody.Order.Item[1] ;
declare i integer 2;
while i < M
set s = s || '|' || InputBody.Order.Item[i] || ;
set i = i + 1;
end while;
set Output.MRM.ItemList = s;
However, I gets empty output. Is my concatenate expression wrong? _________________ pcelari
-----------------------------------------
- a master of always being a newbie
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum