PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
WIN32OLE
/
Variant
U:RDoc::AnyMethod[iI"[]=:ETI"WIN32OLE::Variant#[]=;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"DSet the element of WIN32OLE::Variant object(OLE array) to val. ;TI"<This method is available only when the variant type of ;TI"*WIN32OLE::Variant object is VT_ARRAY.;To:RDoc::Markup::BlankLine o; ; [I"REMARK:;To:RDoc::Markup::Verbatim; [I"7The all indices should be 0 or natural number and ;TI")lower than or equal to max indices. ;TI"8(This point is different with Ruby Array indices.) ;TI" ;TI"4obj = WIN32OLE::Variant.new([[1,2,3],[4,5,6]]) ;TI"obj[0,0] = 7 ;TI"obj[1,0] = 8 ;TI")p obj.value # => [[7,2,3], [8,5,6]] ;TI".obj[2,0] = 9 # => WIN32OLE::RuntimeError ;TI"/obj[0, -1] = 9 # => WIN32OLE::RuntimeError;T:@format0: @fileI"$ext/win32ole/win32ole_variant.c;T:0@omit_headings_from_table_of_contents_below0I"=variant[i,j,...] = val #=> set the element of OLE array ;T0[ I"(*args);T@ FI"Variant;TcRDoc::NormalClass00
[-] cdesc-Variant.ri
[edit]
[-] %5b%5d%3d-i.ri
[edit]
[-] value%3d-i.ri
[edit]
[-] new-c.ri
[edit]
[-] array-c.ri
[edit]
[-] %5b%5d-i.ri
[edit]
[+]
..
[-] value-i.ri
[edit]
[-] vartype-i.ri
[edit]