Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Variables Not Allowed But Reason Doesnt Make Sense

Posted on 2005-03-04
1
Medium Priority
?
140 Views
Last Modified: 2013-12-26
I have a monopoly game in visual basics and it has two forms at this time. The was complete however I'm going to make big changes to it.

I started by saving the two forms to a new folder under different names and deleting all the code. However when I try to create integers dice1 and dice2 I get a response telling me that the integer allready exists in object module from which this module derives.

Now there aint no modules on this project so what does it mean? I can change the variables to avoid it but that means its controlling me and I dont like it.

What do I do to sort this?
0
Comment
Question by:Ryan Bayne
1 Comment
 
LVL 8

Accepted Solution

by:
List244 earned 1000 total points
ID: 13464496
"Member already exists in a object module from which this module derives"

That means that you have an OBJECT named Dice1, or Dice2, or both.
You probably named your dice (which roll) the same as your integers.
This causes a problem with the code, because it would confuse the two.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question