Sign in Join
Wiki copytemporary

Olevariant/fr: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Olevariant/fr

OldNewLine
1+Occupation en mémoire :
2+
3+- dans une compilation en 32 Bit : 16 octets soit 128 Bit
4+
5+- dans une compilation en 64 Bit : 24 octets soit 192 Bit
6+
7+Propriété : Le [[Data type/fr|type de donnée]] **OleVariant** est un type variant, utilisé dans l'automatisation OLE (automatisation d'un autre programme).
8+
9+Déclaration d'un champ de donnée de type OleVariant :
10+
11+``` pascal
12+var
13+ varOle: OleVariant;
14+```
15+
16+Création d'un objet :
17+
18+``` pascal
19+begin
20+ ...
21+ varOle := CreateOleObject('Excel.Application');
22+ ...
23+end;
24+```
25+
26+Libération d'un champ de donnée de type OleVariant (du fait du comptage de références):\
27+
28+``` pascal
29+begin
30+ ...
31+ varOle := Unassigned;
32+ ...
33+end;
34+```
35+
36+D'autres exemples d'utilisation de l'objet Olevariant se trouvent dans le sujet [[Office Automation/fr|Automatisation de logiciel]].
37+
38+---
39+*From the Free Pascal wiki, page "Olevariant/fr", as it stood on 2020-02-21 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history