PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
WIN32OLE
U:RDoc::AnyMethod[iI"const_load:ETI"WIN32OLE::const_load;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HDefines the constants of OLE Automation server as mod's constants. ;TI"AThe first argument is WIN32OLE object or type library name. ;TI":If 2nd argument is omitted, the default is WIN32OLE. ;TI"FThe first letter of Ruby's constant variable name is upper case, ;TI"Bso constant variable name of WIN32OLE object is capitalized. ;TI"FFor example, the 'xlTop' constant of Excel is changed to 'XlTop' ;TI"in WIN32OLE. ;TI"AIf the first letter of constant variable is not [A-Z], then ;TI"7the constant is defined as CONSTANTS hash element.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"module EXCEL_CONST ;TI" end ;TI"/excel = WIN32OLE.new('Excel.Application') ;TI"-WIN32OLE.const_load(excel, EXCEL_CONST) ;TI"(puts EXCEL_CONST::XlTop # => -4160 ;TI"Fputs EXCEL_CONST::CONSTANTS['_xlDialogChartSourceData'] # => 541 ;TI" ;TI" WIN32OLE.const_load(excel) ;TI"%puts WIN32OLE::XlTop # => -4160 ;TI" ;TI"module MSO ;TI" end ;TI"EWIN32OLE.const_load('Microsoft Office 9.0 Object Library', MSO) ;TI"#puts MSO::MsoLineSingle # => 1;T:@format0: @fileI"ext/win32ole/win32ole.c;T:0@omit_headings_from_table_of_contents_below0I"%const_load(ole, mod = WIN32OLE) ;T0[ I"(p1, p2 = v2);T@'FI" WIN32OLE;TcRDoc::NormalClass00
[+]
TypeLib
[-] _getproperty-i.ri
[edit]
[-] ole_method_help-i.ri
[edit]
[-] const_load-c.ri
[edit]
[+]
Variable
[-] ole_type-i.ri
[edit]
[+]
Record
[-] ole_query_interface-i.ri
[edit]
[-] connect-c.ri
[edit]
[+]
VariantType
[-] ole_respond_to%3f-i.ri
[edit]
[-] %5b%5d%3d-i.ri
[edit]
[-] ole_show_help-c.ri
[edit]
[+]
Variant
[+]
Property
[-] cdesc-WIN32OLE.ri
[edit]
[+]
Event
[-] new-c.ri
[edit]
[-] ole_get_methods-i.ri
[edit]
[-] locale%3d-c.ri
[edit]
[-] codepage-c.ri
[edit]
[-] ole_free-c.ri
[edit]
[-] method_missing-i.ri
[edit]
[-] methods-i.ri
[edit]
[-] setproperty-i.ri
[edit]
[-] ole_typelib-i.ri
[edit]
[+]
Method
[-] ole_methods_safely-i.ri
[edit]
[-] each-i.ri
[edit]
[-] codepage%3d-c.ri
[edit]
[-] ole_methods-i.ri
[edit]
[-] create_guid-c.ri
[edit]
[-] ole_activex_initialize-i.ri
[edit]
[-] %5b%5d-i.ri
[edit]
[-] ole_func_methods-i.ri
[edit]
[-] ole_put_methods-i.ri
[edit]
[-] ole_obj_help-i.ri
[edit]
[+]
..
[-] ole_reference_count-c.ri
[edit]
[-] _setproperty-i.ri
[edit]
[-] ole_method-i.ri
[edit]
[-] ole_free-i.ri
[edit]
[+]
RuntimeError
[-] _invoke-i.ri
[edit]
[+]
QueryInterfaceError
[+]
Param
[-] invoke-i.ri
[edit]
[-] locale-c.ri
[edit]
[+]
Type