24件ヒット
[1-24件を表示]
(0.308秒)
検索結果
-
WIN32OLE
# ole _ func _ methods -> [WIN32OLE _ METHOD] (18120.0) -
オブジェクトのファンクション情報をWIN32OLE_METHODの配列として返し ます。
...オブジェクトのファンクション情報をWIN32OLE_METHODの配列として返し
ます。
ole_func_methodsメソッドは、OLEオートメーションサーバのメソッドのうちファ
ンクション(何らかの機能的な操作)に属するものをWIN32OLE_METHODの
配列......が提供されていない場合などに発生します。
excel = WIN32OLE.new('Excel.Application')
excel.visible = true
excel.ole_func_methods.each do |fun|
if fun.name.upcase == 'QUIT'
excel._invoke(fun.dispid, [], [])
break
end
end
@see WIN32OLE#ole_method... -
WIN32OLE
# ole _ get _ methods -> [WIN32OLE _ METHOD] (13.0) -
オブジェクトの参照可能プロパティ情報をWIN32OLE_METHODの配列として 返します。
...')
excel.ole_get_methods.each do |prop|
begin
puts "#{prop.name}=#{excel._getproperty(prop.dispid, [], [])}"
rescue WIN32OLERuntimeError
puts "can't read #{prop.name} property"
end
end
@see WIN32OLE#ole_methods, WIN32OLE#ole_func_methods,
WIN32OLE#ole_put_met...