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?
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?
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.).
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
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
This is where? In a class? In a module? In one form?
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
You know that you do not declare the variable i as the integer type, right? Only the INDX. You have to change that toCode:Dim i As Integer INDX
This is what is right.Code:Private i As Integer, INDX As Integer
Bookmarks