Sign in Join
Wiki copytemporary

Revision 1 of 1, by Trev on 2-21-2020. The page as it is now.

Olevariant/fr

Occupation en mémoire :

Propriété : Le type de donnée OleVariant est un type variant, utilisé dans l'automatisation OLE (automatisation d'un autre programme).

Déclaration d'un champ de donnée de type OleVariant :

pascal
var
  varOle: OleVariant;

Création d'un objet :

pascal
begin
  ...
  varOle := CreateOleObject('Excel.Application');
  ...
end;

Libération d'un champ de donnée de type OleVariant (du fait du comptage de références):\

pascal
begin
  ...
  varOle := Unassigned;
  ...
end;

D'autres exemples d'utilisation de l'objet Olevariant se trouvent dans le sujet Automatisation de logiciel.


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.