> I am trying to use a COM object (Shotgraph) function which
> sets a parameter variable within the object. The question is:
> can CF5 determine the return value of the function variable.
>
> Example:
>
> <cfSet g=CreateObject("COM","shotgraph.image")>
> <cfset x=g.gettextdimensions("This is string to measure",w,h)>
>
> w and h return pixel width and height of the string (its font
> size already having been specified).
>
> How can I read w,h? Setting the variable x is contrived only
> to reference the object and is not set in this function.
If w and h are public properties of the object, you should be able to
reference them using the object name as a prefix (ex: g.w, g.h).
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239111
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54