DelphiDelphiVCLPythonPython GUIWindows

Learn About DelphiVCL.Application.Assign

featuredimage2-4

Assign method or DelphiVCL.Application.Assign is used to copy the contents of another similar object.

Assign copies properties and other attributes of the specified Source object to the current object.

Most objects override Assign to handle the assignment of properties from similar objects. When overriding Assign, call the inherited method if the destination object cannot handle the assignment of properties from the class of the Source parameter.

If no overridden Assign method can handle the assignment of properties from Source, the method implemented in TPersistent calls the source object’s AssignTo method. This allows the source object to handle the assignment.

The assignment operator makes Destination reference the same object as Source, whereas the Assign method copies the contents of the object referenced by Source into the object referenced by Destination.

Note: The types of some properties are also objects. If these properties have written methods that use Assign to set the value of the property, then in these cases the assignment operator does the same thing as the Assign method.

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.Assign using dir() command:

See the responses in our Windows command prompt:

0dir-2902157

You can also read short information about the DelphiVCL.Application.Assign using the print() command:

See the responses in our Windows command prompt:

0print-3396471

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Related posts
DelphiDelphiFMXDelphiVCLPythonPython GUI

How To Start Python GUI Development With Delphi?

AndroidCodeDelphiDelphiFMXIDELearn PythonProjectsPythonPython GUI

How To Create A Calculator App Using Python GUI?

DelphiFMXDelphiVCLNewsPythonPython GUI

Introducing Python 3.11 And Documentation Support To The DelphiFMX And DelphiVCL GUI Python Packages

AndroidCodeDelphiDelphiFMXLearn PythonPythonPython GUI

How To Create A Tic-Tac-Toe Game Using Delphi Python EcoSystem

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish