Page 1 of 1
itemlist
Posted: October 25th, 2013, 2:06 pm
by bidhu
Dear Greg,
I came across a command called "itemlist". However, I did not find any help on this in CSPro. Could you please explain what does this command do?
Regards
Bidhu
Re: itemlist
Posted: October 29th, 2013, 12:44 pm
by Gregory Martin
This function returns a string that concatenates together all of the items passed to the function. It can be simpler to use than either the concat or maketext functions, and if you pass in items, it will format the item in the same way that the item would be formatted to the data file. For example, if you have a numeric field of length four with zero fill:
VAL = 5;
itemlist(VAL); // returns 0005
itemlist("You can mix numeric fields (",VAL,") as well as other fields: ",VAL1,VAL2,VAL3);
It's convenient for concatenating together many variables:
itemlist(PROVINCE,DISTRICT,DIVISION,COMMUNE,EA,HHNUM);