Board index » delphi » HelpMe!
faz...@chch.planet.org.nz (Jason Fazackerley)
![]() Delphi Developer |
Wed, 02 Dec 1998 03:00:00 GMT
|
faz...@chch.planet.org.nz (Jason Fazackerley)
![]() Delphi Developer |
Wed, 02 Dec 1998 03:00:00 GMT
HelpMe!Please help, I am trying to overcome the most basic of problems, yet to no avail!!! :( If i design a procedure or function within a forms unit, whenever i reference below is a procedure that causes this error. procedure changecolor; procedure TForm1.Button1Click(Sender: TObject); surely i should be able to do this, but i can not figure out the error, please hope i have groveled enuf for assistance. |
Boris Ingr
![]() Delphi Developer |
Wed, 02 Dec 1998 03:00:00 GMT
Re:HelpMe!QuoteIn article <4pt5rp$...@sirius.plain.co.nz> faz...@chch.planet.org.nz (Jason Fazackerley) writes: object - encapsulation means that the procs that are not methods do not know of objects fields. >begin Quote>tform1.edit2.text := edit1.text; <= the edit2 is an undeclared identifier. who owns it. Quote>end; Boris Ingram, Cyborg Software |
Nicholas Robinso
![]() Delphi Developer |
Thu, 03 Dec 1998 03:00:00 GMT
Re:HelpMe!In article <4pt5rp$...@sirius.plain.co.nz>, Jason Fazackerley Quote>Please help, one of TForms Modifier\Selector methods then it isn't part fot he TForm1 class and hence cannot access the forms attrributes. What you could do is: Make it a method of the form HTH |
Atle Hamme
![]() Delphi Developer |
Fri, 04 Dec 1998 03:00:00 GMT
Re:HelpMe!QuoteJason Fazackerley wrote: therefore only available inside the object. The solution is to declare the change color procedure inside your form in the private, public or published sections: TForm1=Tform . In the implementation part you write: procedure TForm1.changecolor; Hope this helps Atle Hammer |
Arro
![]() Delphi Developer |
Mon, 07 Dec 1998 03:00:00 GMT
Re:HelpMe!In <4pt5rp$...@sirius.plain.co.nz> faz...@chch.planet.org.nz (Jason QuoteFazackerley) writes: there and it becomes a declared identifier. Ben |
Lawrence Walte
![]() Delphi Developer |
Sat, 26 Dec 1998 03:00:00 GMT
Re:HelpMe!On 15 Jun 1996 02:06:49 GMT, faz...@chch.planet.org.nz (Jason QuoteFazackerley) wrote: what is going on. I will make the assumption that you are declaring the function outside That is, you are not declaring the function as an encapsulated method If this is the case, you will need to fully qualify the name of the Regards Lawrence Walters Regards Lawrence Walters |
Lawrence Walte
![]() Delphi Developer |
Sat, 26 Dec 1998 03:00:00 GMT
Re:HelpMe!On 15 Jun 1996 02:06:49 GMT, faz...@chch.planet.org.nz (Jason QuoteFazackerley) wrote: Lawrence Walters |