Difference between revisions of "OleVariant"
From Free Pascal wiki
Jump to navigationJump to searchm (Alextpp moved page Olevariant to OleVariant: fix casing of type name) |
(fix example) |
||
Line 1: | Line 1: | ||
{{Olevariant}} | {{Olevariant}} | ||
− | |||
− | |||
Back to [[Data type|data types]]. | Back to [[Data type|data types]]. | ||
+ | Memory required for 32-bit compilation: 16 bytes or 128 bits. | ||
− | + | Memory required for 64-bit compilation: 24 bytes or 192 bits. | |
− | |||
− | Memory required for 64-bit compilation: 24 bytes or 192 bits | ||
− | Property: | + | Property: the data type OleVariant is a variant data type that is used for OLE automation (automation of other programs). |
Declaration of a data field of the data type '''OleVariant''': | Declaration of a data field of the data type '''OleVariant''': | ||
Line 15: | Line 12: | ||
<syntaxhighlight lang=pascal> | <syntaxhighlight lang=pascal> | ||
var | var | ||
− | + | varOle : OleVariant; | |
− | Create | + | |
− | + | //Create: | |
− | + | varOle := CreateOleObject('Excel.Application'); | |
− | + | ||
− | + | //Release of a data field of the data type OleVariant: | |
− | + | varOle := Unassigned; | |
− | Release of a data field of the data type OleVariant: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
You can find further examples for use on the topic of OleVariant under the topic of software automation. | You can find further examples for use on the topic of OleVariant under the topic of software automation. |
Revision as of 13:20, 22 December 2023
This article applies to Windows only.
See also: Multiplatform Programming Guide
│
English (en) │
Back to data types.
Memory required for 32-bit compilation: 16 bytes or 128 bits.
Memory required for 64-bit compilation: 24 bytes or 192 bits.
Property: the data type OleVariant is a variant data type that is used for OLE automation (automation of other programs).
Declaration of a data field of the data type OleVariant:
var
varOle : OleVariant;
//Create:
varOle := CreateOleObject('Excel.Application');
//Release of a data field of the data type OleVariant:
varOle := Unassigned;
You can find further examples for use on the topic of OleVariant under the topic of software automation.