Difference between revisions of "Olevariant/de"
From Free Pascal wiki
Jump to navigationJump to searchm (Fixed syntax highlighting; removed categories included in template) |
m (Fixed syntax highlighting) |
||
Line 1: | Line 1: | ||
{{Olevariant}} | {{Olevariant}} | ||
− | + | ||
− | Zurück zu den [[Data type/de|Datentypen]]. | + | |
− | + | 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. | + | Speicherbedarf bei 32 Bit Kompilierung: 16 Byte bzw. 128 Bit |
− | + | ||
− | Deklaration eines Datenfeldes vom [[Data type/de|Datentyp]] OleVariant: | + | Speicherbedarf bei 64 Bit Kompilierung: 24 Byte bzw. 192 Bit |
− | <syntaxhighlight> | + | |
+ | 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 | var | ||
varOle: OleVariant; | varOle: OleVariant; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | Erstellen eines OleObjektes: | + | |
− | <syntaxhighlight> | + | Erstellen eines OleObjektes: |
+ | |||
+ | <syntaxhighlight lang=pascal> | ||
begin | begin | ||
... | ... | ||
Line 20: | Line 27: | ||
end; | end; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
Freigabe eines Datenfeldes vom [[Data type/de|Datentyp]] OleVariant:<br> | Freigabe eines Datenfeldes vom [[Data type/de|Datentyp]] OleVariant:<br> | ||
− | <syntaxhighlight> | + | |
+ | <syntaxhighlight lang=pascal> | ||
begin | begin | ||
... | ... | ||
Line 28: | Line 37: | ||
end; | end; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
Weitere Beispiele zur Verwendung zum Thema OleVariant finden Sie unter dem Thema [[Office_Automation/de|Softwareautomation]]. | 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.