| In: |
win32ole/win32ole.c
|
| Parent: | Object |
Returns the name.
/*
* WIN32OLE_VARIABLE#name
* ---
* Returns the name.
*/
static VALUE
folevariable_name(self)
VALUE self;
{
return rb_ivar_get(self, rb_intern("name"));
}
Returns type.
/*
* WIN32OLE_VARIABLE#ole_type
* ----
* Returns type.
*/
static VALUE
folevariable_ole_type(self)
VALUE self;
{
struct olevariabledata *pvar;
Data_Get_Struct(self, struct olevariabledata, pvar);
return ole_variable_ole_type(pvar->pTypeInfo, pvar->index);
}
WIN32OLE_VARIABLE#ole_type_detail
Returns detail information of type. The information is array of type.
/*
* WIN32OLE_VARIABLE#ole_type_detail
* ---
* Returns detail information of type. The information is array of type.
*/
static VALUE
folevariable_ole_type_detail(self)
VALUE self;
{
struct olevariabledata *pvar;
Data_Get_Struct(self, struct olevariabledata, pvar);
return ole_variable_ole_type_detail(pvar->pTypeInfo, pvar->index);
}
Returns value if value is exists. If the value does not exist, this method returns nil.
/*
* WIN32OLE_VARIABLE#value
* ----
* Returns value if value is exists. If the value does not exist,
* this method returns nil.
*/
static VALUE
folevariable_value(self)
VALUE self;
{
struct olevariabledata *pvar;
Data_Get_Struct(self, struct olevariabledata, pvar);
return ole_variable_value(pvar->pTypeInfo, pvar->index);
}
WIN32OLE_VARIABLE#variable_kind
Returns variable kind string.
/*
* WIN32OLE_VARIABLE#variable_kind
* ----
* Returns variable kind string.
*/
static VALUE
folevariable_variable_kind(self)
VALUE self;
{
struct olevariabledata *pvar;
Data_Get_Struct(self, struct olevariabledata, pvar);
return ole_variable_kind(pvar->pTypeInfo, pvar->index);
}
Returns the number which represents variable kind.
/*
* WIN32OLE_VARIABLE#varkind
* ----
* Returns the number which represents variable kind.
*/
static VALUE
folevariable_varkind(self)
VALUE self;
{
struct olevariabledata *pvar;
Data_Get_Struct(self, struct olevariabledata, pvar);
return ole_variable_varkind(pvar->pTypeInfo, pvar->index);
}
WIN32OLE_VARIABLE#visible?
Returns true if the variable is public.
/*
* WIN32OLE_VARIABLE#visible?
* ----
* Returns true if the variable is public.
*/
static VALUE
folevariable_visible(self)
VALUE self;
{
struct olevariabledata *pvar;
Data_Get_Struct(self, struct olevariabledata, pvar);
return ole_variable_visible(pvar->pTypeInfo, pvar->index);
}