Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 18-12-2008
Member
 
Join Date: Oct 2008
Posts: 31
Error in VB

When I try to run the program gives me this error: Can not set the public user-defined type within a private object module. How to handle this?
Reply With Quote
  #2  
Old 18-12-2008
Member
 
Join Date: May 2008
Posts: 2,008
Re: Error in VB

Do you think this message only with someone you know clarify?

The only thing I know is: have any one thing that is entered in the wrong place. If you want to know anything else, shows the portion of code that caused this problem and how is your project organized (which modules, classes, forms, etc.).
Reply With Quote
  #3  
Old 18-12-2008
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Error in VB

It seems to me that you have a variable in a class PUBLIC PRIVATE. There all the statements in your class to discover deficiency and properly implement.

If you want to resolve this fast, at the risk of
Reply With Quote
  #4  
Old 18-12-2008
Member
 
Join Date: Oct 2008
Posts: 31
Re: Error in VB

Here is the code I am suing,
Code:
name As String * 20 
The age Integer 
End Type 
The dim () The Person 
Dim i As Integer INDX
Reply With Quote
  #5  
Old 18-12-2008
Member
 
Join Date: May 2008
Posts: 2,008
Re: Error in VB

This is where? In a class? In a module? In one form?
Reply With Quote
  #6  
Old 18-12-2008
Member
 
Join Date: Oct 2008
Posts: 31
Re: Error in VB

Quote:
Originally Posted by Katty View Post
This is where? In a class? In a module? In one form?
In a form. Just a form to use this program.
Reply With Quote
  #7  
Old 18-12-2008
Member
 
Join Date: May 2008
Posts: 2,008
Re: Error in VB

Here is the solution. Type Private Exchange by Type (Type Private Person) and Dim for Private (Private I, INDEX As Integer).
By the way, this last line, you have
Code:
Dim i As Integer INDX
You know that you do not declare the variable i as the integer type, right? Only the INDX. You have to change that to
Code:
Private i As Integer, INDX As Integer
This is what is right.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Error in VB"
Thread Thread Starter Forum Replies Last Post
Getting Error message ?Northbridge Error, node 2<0>K8 ECC error.? in CentOS 5.5 Pawna Operating Systems 5 04-05-2011 10:50 AM
error “shmget (lowmem) error: Unknown error 999” on linux -Wamil- Operating Systems 6 12-11-2010 11:37 PM
Server Error: 451, Socket Error: 10053, Error Number: 0x800CCC0F Eigenberg Windows XP Support 3 03-06-2008 04:13 PM
Error displaying page error [Error number: 0x80090305] shai Windows Update 3 21-07-2005 01:07 AM


All times are GMT +5.5. The time now is 10:36 PM.