Thursday, September 11, 2003

New Update to Foxfire! COM Component 

Added some new functions to Foxfire! COM component to make it easier for getting objects and collections in DotNet.
 
If you are familiar with the FF! object model, you'll know that each object has the Items collection. Requests have collections for DataItems, Sorts, Calculations , etc and so on.
 
Apparently, DotNet in all its inherent omniscience can't grab one of these collections properly so we created GetRequests() which simply returns the Requests collection.
 
Now to get an item, you actually have to call GetItem( ).
 
So the code would look something like this:
x = CREATEOBJECT("foxfireom.ffapplication")
? x.setlocation("\ff60ent\")
lo = x.GetRequests()
loReq = lo.GetItem(1)
? loReq.RequestName
? loReq.Description
loItems = loReq.GetDataItems()
? loItems.count
 
Oh well....
 
Separate download available: http://www.foxfirereporting.com/livedesign/ffom.zip
 
Email support@micromegasystems.com for the password.


Comment

This page is powered by Blogger. Isn't yours?