Module: CP2Record

Includes:
WIN32OLE::VARIANT
Defined in:
lib/ole20110223-013209.rb

Overview

P2Record Class

Constant Summary

Constants included from WIN32OLE::VARIANT

WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lastargsObject (readonly)

Returns the value of attribute lastargs.



827
828
829
# File 'lib/ole20110223-013209.rb', line 827

def lastargs
  @lastargs
end

Instance Method Details

#CountObject

property UI4 Count



830
831
832
# File 'lib/ole20110223-013209.rb', line 830

def Count()
  _getproperty(1, [], [])
end

#GetRec(p_val) ⇒ Object

HRESULT GetRec

OLE_HANDLE p_val [OUT]


884
885
886
# File 'lib/ole20110223-013209.rb', line 884

def GetRec(p_val)
  keep_lastargs _invoke(1610678272, [p_val], [VT_BYREF|VT_BYREF|VT_DISPATCH])
end

#GetValAsLong(field_name) ⇒ Object

method I4 GetValAsLong

BSTR field_name [IN]


848
849
850
# File 'lib/ole20110223-013209.rb', line 848

def GetValAsLong(field_name)
  _invoke(4, [field_name], [VT_BSTR])
end

#GetValAsLongByIndex(field_index) ⇒ Object

method I4 GetValAsLongByIndex

UI4 field_index [IN]


854
855
856
# File 'lib/ole20110223-013209.rb', line 854

def GetValAsLongByIndex(field_index)
  _invoke(5, [field_index], [VT_UI4])
end

#GetValAsShort(field_name) ⇒ Object

method I2 GetValAsShort

BSTR field_name [IN]


860
861
862
# File 'lib/ole20110223-013209.rb', line 860

def GetValAsShort(field_name)
  _invoke(6, [field_name], [VT_BSTR])
end

#GetValAsShortByIndex(field_index) ⇒ Object

method I2 GetValAsShortByIndex

UI4 field_index [IN]


866
867
868
# File 'lib/ole20110223-013209.rb', line 866

def GetValAsShortByIndex(field_index)
  _invoke(7, [field_index], [VT_UI4])
end

#GetValAsString(field_name) ⇒ Object

method BSTR GetValAsString

BSTR field_name [IN]


836
837
838
# File 'lib/ole20110223-013209.rb', line 836

def GetValAsString(field_name)
  _invoke(2, [field_name], [VT_BSTR])
end

#GetValAsStringByIndex(field_index) ⇒ Object

method BSTR GetValAsStringByIndex

UI4 field_index [IN]


842
843
844
# File 'lib/ole20110223-013209.rb', line 842

def GetValAsStringByIndex(field_index)
  _invoke(3, [field_index], [VT_UI4])
end

#GetValAsVariant(field_name) ⇒ Object

method VARIANT GetValAsVariant

BSTR field_name [IN]


872
873
874
# File 'lib/ole20110223-013209.rb', line 872

def GetValAsVariant(field_name)
  _invoke(8, [field_name], [VT_BSTR])
end

#GetValAsVariantByIndex(field_index) ⇒ Object

method VARIANT GetValAsVariantByIndex

UI4 field_index [IN]


878
879
880
# File 'lib/ole20110223-013209.rb', line 878

def GetValAsVariantByIndex(field_index)
  _invoke(9, [field_index], [VT_UI4])
end