| 
 Trying to determine the sector ID of an issue 
.... 
  
Using: 
  
Sector_ID   = writeif(sectorID(0) <=63 
,SectorID(1),"None"); 
  
This works fine for stocks that do have a sector ID 
defined, but when I look at a mutual fund that does not have a sector definition 
(QP database), that program crashes. 
  
How can I prevent a crash and use proper error 
trapping? 
  
Thanks 
  
Ara 
  
Check AmiBroker web page at: 
http://www.amibroker.com/ 
 
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
  
 
| Yahoo! Groups Sponsor | 
 
  ADVERTISEMENT
 ![click here]()  |     | 
 
![]()  |  
 
 
 
Yahoo! Groups Links 
 |