OleVariant

From Free Pascal wiki
Revision as of 13:59, 21 February 2020 by Trev (talk | contribs) (English translation of German page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Windows logo - 2012.svg

This article applies to Windows only.

See also: Multiplatform Programming Guide

English (en)


Back to data types.


Memory required for 32-bit compilation: 16 bytes or 128 bits

Memory required for 64-bit compilation: 24 bytes or 192 bits

Property: The data type OleVariant is a variant data type that is used for OLE automation (automation of other programs).

Declaration of a data field of the data type OleVariant:

var
   varOle : OleVariant ;
Create an OleObject:
  begin
   ...
   varOle : = CreateOleObject ( 'Excel.Application' ) ;
   ...
 end ;
Release of a data field of the data type OleVariant: 
  begin
   ...
   varOle : = Unassigned ;
   ...
 end ;

You can find further examples for use on the topic of OleVariant under the topic of software automation.