Copie du wikimiroir

Ceci est un miroir du wiki de pascal.chat. La modification, l’historique et la connexion se trouvent là-bas.

Olevariant/fr

Deutsch · English · Français

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.

Version 1, dernière modification par WikiArchive .