Should be similar:
NumOfIndustry = 200; // or the actual number (max 256)
for(w=0;w<NumOfIndustry;w++) // note that the loop starts from 0, not 1
{
if(IndustryID() == w)
{
Comp = "~"+CategoryGetName(categoryIndustry,w);
AddToComposite(C,Comp,"C");
AddToComposite(1,Comp,"I");
}
}
Buy=0;
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/