Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Borland Delphi > Re: calling a f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 8 Topic 3671 of 3900
Post > Topic >>

Re: calling a frame's method

by Rob Kennedy <me3@[EMAIL PROTECTED] > Apr 1, 2008 at 07:33 AM

peterg12345@[EMAIL PROTECTED]
 wrote:
> I have a bunch of frames on a main form. I keep track of the current
> frame via a variable - say CurrentFrame. Now, after assigning frame1
> to CurrentFrame, I would like to say something like
> CurrentFrame.DoSomeInitializations, where the method
> DoSomeInitializations are public procedures within each frame. Why
> does this fail? How to correctly do this?

It's your code, and we haven't seen it, so we can't tell you why it fails.

Is it a compilation failure? What's the error message?

Is it a run-time failure? What are the exception type and message?

Is it a behavior failure? What did you expect the code to do, and what 
did it do instead?

My guess is that it's a compilation problem and that the error message 
says something about "undeclared identifier" because whatever type 
you've used to declare the CurrentFrame variable doesn't have a method 
named DoSomeInitializations.

-- 
Rob
 




 8 Posts in Topic:
calling a frame's method
peterg12345@[EMAIL PROTEC  2008-03-31 20:39:17 
Re: calling a frame's method
=?ISO-8859-1?Q?Erich_G=FC  2008-04-01 07:55:05 
Re: calling a frame's method
Jim P <Jim_P@[EMAIL PR  2008-03-31 23:04:20 
Re: calling a frame's method
Rob Kennedy <me3@[EMAI  2008-04-01 07:33:39 
Re: calling a frame's method
peterg12345@[EMAIL PROTEC  2008-04-01 08:48:14 
Re: calling a frame's method
=?ISO-8859-1?Q?Danny_Str=  2008-04-01 21:04:45 
Re: calling a frame's method
Jamie <jamie_ka1lpa_no  2008-04-01 20:18:34 
Re: calling a frame's method
Hedrew3 <peterg12345@[  2008-04-01 15:38:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Sep 5 2:48:25 CDT 2008.