BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Not a Vailid Identifier

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
TFehr
Guest





PostPosted: Tue Nov 25, 2003 9:00 pm    Post subject: Not a Vailid Identifier Reply with quote



I am trying to assign a standard method which is stored in a seperate form
to a OnPostError event. This results in a
"'FormMainMenu.IBDataSetPostError' is not a valid identifier." error. I'm
using the same method to assign the DataBase property to reference
'FormMainMenu.Database' and it works just fine.

Must events reference methods in the local unit only or have I forgotten
something?

Using D6Ent w/IBX

Thanx in advance,
TFehr


Back to top
Ignacio Vazquez
Guest





PostPosted: Wed Nov 26, 2003 2:11 am    Post subject: Re: Not a Vailid Identifier Reply with quote



Hello, TFehr!
Quote:
Must events reference methods in the local unit only or have I forgotten
something?

You need to add the unit to the uses clause.

Cheers,
Ignacio

--
Henshin-a-go-go, baby!



Back to top
TFehr
Guest





PostPosted: Wed Nov 26, 2003 1:55 pm    Post subject: Re: Not a Vailid Identifier Reply with quote



Since your recommendation I've tried both uses lists without success.

Thanx again,
TFehr

"Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote

Quote:
Hello, TFehr!
Must events reference methods in the local unit only or have I forgotten
something?

You need to add the unit to the uses clause.

Cheers,
Ignacio

--
Henshin-a-go-go, baby!





Back to top
Chris Luck
Guest





PostPosted: Wed Nov 26, 2003 8:51 pm    Post subject: Re: Not a Vailid Identifier Reply with quote

"TFehr" <nospam (AT) eliaswoodwork (DOT) com> wrote


Quote:
Must events reference methods in the local unit only or have I forgotten
something?

Aside from appropriate entries in Uses clause(s), remember that for a method
or field of your form to be seen by another unit it must be declared as
public.

--
Regards,
Chris Luck



Back to top
TFehr
Guest





PostPosted: Wed Nov 26, 2003 9:54 pm    Post subject: Re: Not a Vailid Identifier Reply with quote

That doesn't help either.

Thanx again,
TFehr

"Chris Luck" <chris (AT) bvhg (DOT) freeXYZserve.co.uk> wrote

Quote:
"TFehr" <nospam (AT) eliaswoodwork (DOT) com> wrote in message
news:3fc3c2f9 (AT) newsgroups (DOT) borland.com...

Must events reference methods in the local unit only or have I forgotten
something?

Aside from appropriate entries in Uses clause(s), remember that for a
method
or field of your form to be seen by another unit it must be declared as
public.

--
Regards,
Chris Luck





Back to top
Chris Luck
Guest





PostPosted: Thu Nov 27, 2003 12:22 am    Post subject: Re: Not a Vailid Identifier Reply with quote

"TFehr" <nospam (AT) eliaswoodwork (DOT) com> wrote

Quote:
That doesn't help either.

Ho-hum. Ok, locate the unit in which OnPostError is declared (IBTable? I
don't have IBX) and add that to the uses clause. If that doesn't work throw
in all used DB units, if that compiles you can remove them one by one to
determine which are needed.

--
Regards,
Chris Luck



Back to top
Iain Macmillan
Guest





PostPosted: Thu Nov 27, 2003 12:24 am    Post subject: Re: Not a Vailid Identifier Reply with quote


In article <3fc3c2f9 (AT) newsgroups (DOT) borland.com>, "TFehr"
<nospam (AT) eliaswoodwork (DOT) com> wrote:


Quote:
I am trying to assign a standard method which is stored in a seperate form
to a OnPostError event. This results in a
"'FormMainMenu.IBDataSetPostError' is not a valid identifier." error.

That 'I' in 'IBDataSet..' -
Is it actually an 'I' or is it a '1' (number one) ?.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.