Sign in Join
FPDoc Onlineexperiment

assign(Variant):TCaption operator

In unit Controls

Declares an assignment operator used to convert a Variant type to a TCaption type.

Declaration

pascal
operator :=(AVariant: Variant): TCaption

Description

Declares an assignment operator used to convert a TVariant value to a TCaption value during assignment. Casts the value in AVariant to a String type and assigns it as the return value for the operator. For example:

var
  AVariant: Variant;
  AControl: TControl;
  // ...
  AControl.Caption := AVariant;

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.