[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


[Delphi] Find variable by name?

Posted on 2011-04-23
Medium Priority
Last Modified: 2012-05-11
Hi can i find variables by name? and use them? with components i can do this:
TEdit(FindComponent('edNew')).Text := 'aa';

Open in new window

It is possible with variables? Please help me
Question by:l3m0n
  • 3
  • 2
LVL 19

Accepted Solution

Thommy earned 2000 total points
ID: 35454090
No, it's not possible...

Find variable by its name
LVL 19

Expert Comment

ID: 35454098
l3m0n knows how to find components by name!!!
What he wants is to do the same with variables...
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Expert Comment

ID: 35454128
You can only do these is "edNew" is part of a delphi class and is published.
A a published "some thing" generts RTTI Runtime Type Information.
you can do things like list all poppus that the program as created for explem.
found delphi jedi site they have lots of exempls that you need to undestem these thing you are trying to do.

TEdit(FindComponent('edNew')).Text := 'aa';   edNew must be a published, not public.
see these article is important to undestand RTTI Runtime Type Information.
LVL 14

Expert Comment

ID: 35454176
Ok, Thommy,
I was thinking about;
uses typeinfo,
RTTi like overtheclock007s link

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month19 days, 17 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question