I got my program to work after reading the similar problem on tek-tips posted by Mikrom.
After reading the thread several times, I simply named the form in the subprogram to "myform2" and the class name was changed to TMyform2.
I was still getting the same compile error, but on a wild guess I...
I have a Delphi program that has a simple function (mysum) defined in the public area
of the form. I drop a button on the form, and on its click event I call my simple function
and get the result;
I later create a new project, and decide I want to use the mysum function, so I
add the first...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.