Difference between revisions of "Olevariant/de"
From Free Pascal wiki
Jump to navigationJump to searchm (Fixed syntax highlighting) |
|||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Olevariant}} | {{Olevariant}} | ||
− | Der [[Data type/de|Datentyp]] '''OleVariant''' ist ein | + | |
− | < | + | Zurück zu den [[Data type/de|Datentypen]]. |
− | + | ||
− | [[ | + | |
+ | Speicherbedarf bei 32 Bit Kompilierung: 16 Byte bzw. 128 Bit | ||
+ | |||
+ | Speicherbedarf bei 64 Bit Kompilierung: 24 Byte bzw. 192 Bit | ||
+ | |||
+ | Eigenschaft: Der [[Data type/de|Datentyp]] '''OleVariant''' ist ein Variant-Datentyp, der der OLE-Automatisierung (Automatisierung anderer Programme) dient. | ||
+ | |||
+ | Deklaration eines Datenfeldes vom [[Data type/de|Datentyp]] OleVariant: | ||
+ | |||
+ | <syntaxhighlight lang=pascal> | ||
+ | var | ||
+ | varOle: OleVariant; | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Erstellen eines OleObjektes: | ||
+ | |||
+ | <syntaxhighlight lang=pascal> | ||
+ | begin | ||
+ | ... | ||
+ | varOle := CreateOleObject('Excel.Application'); | ||
+ | ... | ||
+ | end; | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Freigabe eines Datenfeldes vom [[Data type/de|Datentyp]] OleVariant:<br> | ||
+ | |||
+ | <syntaxhighlight lang=pascal> | ||
+ | begin | ||
+ | ... | ||
+ | varOle := Unassigned; | ||
+ | ... | ||
+ | end; | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Weitere Beispiele zur Verwendung zum Thema OleVariant finden Sie unter dem Thema [[Office_Automation/de|Softwareautomation]]. |
Latest revision as of 12:52, 21 February 2020
Dieser Artikel behandelt ausschließlich Windows.
Siehe auch: Multiplatform Programming Guide/de
│
Deutsch (de) │
English (en) │
français (fr) │
Zurück zu den Datentypen.
Speicherbedarf bei 32 Bit Kompilierung: 16 Byte bzw. 128 Bit
Speicherbedarf bei 64 Bit Kompilierung: 24 Byte bzw. 192 Bit
Eigenschaft: Der Datentyp OleVariant ist ein Variant-Datentyp, der der OLE-Automatisierung (Automatisierung anderer Programme) dient.
Deklaration eines Datenfeldes vom Datentyp OleVariant:
var
varOle: OleVariant;
Erstellen eines OleObjektes:
begin
...
varOle := CreateOleObject('Excel.Application');
...
end;
Freigabe eines Datenfeldes vom Datentyp OleVariant:
begin
...
varOle := Unassigned;
...
end;
Weitere Beispiele zur Verwendung zum Thema OleVariant finden Sie unter dem Thema Softwareautomation.