Delphi All You Need To Know About GetNamePath Method in DelphiVCL.Application

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
All You Need To Know About GetNamePath Method in DelphiVCL.Application
By Muhammad Azizul Hakim October 19, 2021

Use the GetNamePath method or DelphiVCL.Application.GetNamePath to return a string used by the Object Inspector.

GetNamePath is used to determine the text to display in the Object Inspector for the name of the object being edited. GetNamePath is introduced in TPersistent so descendants such as collections can appear in the Object Inspector. TComponent overrides GetNamePath to return the component’s name. Do not call GetNamePath directly.

Let’s browse all the properties and methods of the DelphiVCL.Application.GetNamePath using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.GetNamePath)
See the responses in our Windows command prompt:
1634627683986.png
You can also read short information about the DelphiVCL.Application.GetNamePath using the print() command:
Python:
print(DelphiVCL.Application.GetNamePath)
print(DelphiVCL.Application.GetNamePath.__doc__)
See the responses in our Windows command prompt:
1634627725068.png