On this page:
top
up

2COM TypesπŸ”— i

In the result of a function like com-method-type , a type 'mx-any standards for a character, real number, string, boolean, COM currency (as in com-currency? ), COM date (as in com-date? ), COM scode value (as in com-scode? ), COM IUnknown value (as in com-iunknown? , or COM object (as in com-object? ).}

procedure

( com-object-type obj)com-type?

Returns a type for a COM object.

procedure

( com-is-a? objtype)boolean?

type:com-type?
Return #t if obj is of the type type.

procedure

( com-currency? v)boolean?

v:any/c
Returns #t if v is a COM currency value, #f otherwise.

procedure

( com-currency->number curr)real?

Returns a number for curr.

n:real?
Converts a number to a COM currency value. A currency value is repsented with a 64-bit two’s-complement integer, though n may contain decimal digits. If n is too large, an exception is raised.

procedure

( com-date? v)boolean?

v:any/c
Returns #t if v is a COM date value, #f otherwise.

procedure

( com-date->date d)date?

Converts a COM date to an instance of the date structure type. In the result, the dst? field is always #f, and the time-zone-offset field is 0.

procedure

( date->com-date d)com-date?

d:date?
Converts a date instance to a COM date value.

procedure

( com-scode? v)boolean?

v:any/c
Returns #t if v is a COM scode value, #f otherwise.

procedure

( com-scode->number sc)integer?

Converts a COM scode value to an integer.

procedure

( number->com-scode n)com-scode?

Converts a number to a COM scode value. The number must be representable as a 32-bit two’s-complement number, otherwise an exception is raised.

procedure

( com-iunknown? v)boolean?

v:any/c
Returns #t if v is a COM IUnknown value, #f otherwise.

value

com-omit :any/c

Used with com-invoke to represent an argument that is not provided.

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /