I
I
Intelix2021-04-14 15:11:21
Delphi
Intelix, 2021-04-14 15:11:21

How to use functions in delphi?

Hello. Involuntarily, I had to deal with delphi.
I'm doing a simple test, I need to call the refresh_questions() function on certain events.
The problem is that in this function I cannot use form elements. (change label's caption)
Throws E2003 Undeclared indentifer: 'Label1'

How do I interact with form elements from within my function?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hemul GM, 2021-04-14
@Intelix

So you create this function inside the form class

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question