| View previous topic :: View next topic |
| Author |
Message |
TFehr Guest
|
Posted: Tue Nov 25, 2003 9:00 pm Post subject: Not a Vailid Identifier |
|
|
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
|
Posted: Wed Nov 26, 2003 2:11 am Post subject: Re: Not a Vailid Identifier |
|
|
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
|
Posted: Wed Nov 26, 2003 1:55 pm Post subject: Re: Not a Vailid Identifier |
|
|
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
|
Posted: Wed Nov 26, 2003 8:51 pm Post subject: Re: Not a Vailid Identifier |
|
|
"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
|
Posted: Wed Nov 26, 2003 9:54 pm Post subject: Re: Not a Vailid Identifier |
|
|
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
|
Posted: Thu Nov 27, 2003 12:22 am Post subject: Re: Not a Vailid Identifier |
|
|
"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
|
Posted: Thu Nov 27, 2003 12:24 am Post subject: Re: Not a Vailid Identifier |
|
|
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 |
|
 |
|