By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,685 Members | 1,326 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,685 IT Pros & Developers. It's quick & easy.

Public Variables and Reference Error

P: n/a
I have three variables which I have made Public. The
other forms in my project are still not able to read these
variables.

For Example, in a form named EndItem there is a variable
which I declare as: Public intItemIdentifier As Integer

In another form I have -
Textbox1.Text = EndItem.intItemIdentifier

The error I get is:
Reference to a non-shared memeber requres an object
reference.

Am I missing something?
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Elena,

It's best to keep related queies together.

What you are missing is the answer in the thread with your original
question! ;-)

Regards,
Fergus
Nov 20 '05 #2

P: n/a
Perfect!

thank you so much!

Elena
-----Original Message-----
Hi Elena,

It's best to keep related queies together.

What you are missing is the answer in the thread with your originalquestion! ;-)

Regards,
Fergus
.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.