Masaki Suketa
6/11/2009 11:40:00 AM
Hello,
Bruno Le hyaric wrote:
> I need to get the type of the property I want to set?
>
> I try :
>
> prop = obj.ole_put_methods.first
> prop.params
> => []
> prop.size_params
> => 1 (not coherent with previous result)
> prop.return_type
> => VOID
>
> is there a lack in win32ole reflexivity?
If there is a get-property corresponding to the put-property, then
obj.ole_get_methods.find {|m|
m.progid == prop.progid
}.return_type_detail
But if there isn't corresponding get-property,
there is no way to get the type of put-property.
Regards,
Masaki Suketa