Cannot convert "int" to "TForm2" problem (with screenshot)
I'm not only new to this forum, i'm also new to programming :)
At the moment, i'm still learning to understand everything of the syntax. The sites and books i've read so far explain most of the code like writing a C application. I want to do OOP so i tried if i understood "IF" with a little program.
It's really simple:
I have a form with a textfield and a second form with an OK button. Now i wanted to write code so the second form opens if i type "1" in the text field.
Here's what it looks like:
Did i make a mistake in the code? Or is this action not possible with this component?