itemlist

Discussions about CSEntry
Post Reply
bidhu
Posts: 25
Joined: April 15th, 2013, 12:43 pm

itemlist

Post 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
Gregory Martin
Posts: 1947
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: itemlist

Post 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);
Post Reply