Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > " " is not a member of 'Integer'. ERROR


Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2009, 06:33 AM
Daihoc's Avatar
Daihoc Daihoc is offline
Newcomer
 
Join Date: Jun 2009
Location: Torrance, California
Posts: 23
Default " " is not a member of 'Integer'. ERROR


Hello, hopefully someone here can help me figure out how to rectify this error I keep getting.

I have been working on this program for over 2 weeks when I decided to go ahead and rename the mainform(from 'form1.vb' to 'FormGenerator.vb') and subform(from 'form2.vb to 'GeneratedCode.vb'). Now I getting two errors within the main form code:

Error 2 'show' is not a member of 'Integer'.
Error 3 'RichTextBox1' is not a member of 'Integer'.

And a warning:

Warning 1 Failed to parse method 'InitializeComponent'. The parser reported the following error 'Error HRESULT E_FAIL has been returned from a call to a COM component.'. Please look in the Task List for potential errors.

And the code now looks like this:

Function OPENFORM2() As Integer
'Show generated code form and display output.
generateCode.show()
GenerateCode.RichTextBox1.Text = Module1.ADSTRING1
End Function

It has left me baffled! I have tried reversing the rename to find that it leaves me with the same error, as does copying either form and deleting the old.

Does ANYONE have any idea how to overcome this error? Any help would be greatly appreciated!

Thanks again,
Reply With Quote
  #2  
Old 06-23-2009, 06:58 AM
wildfire1982 wildfire1982 is offline
Senior Contributor
 
Join Date: Jul 2003
Location: Southampton UK
Posts: 801
Default

Hello,

Might be worth posting some more code as I have no idea what you are trying to do.

I would imagine you have changed something somewhere and caused some confusion. Sounds like it has gone a bit messy.
__________________
Chris
Reply With Quote
  #3  
Old 06-23-2009, 07:09 AM
Eradicator Eradicator is offline
Junior Contributor
 
Join Date: May 2008
Posts: 300
Default

It sounds to me like you have a second variable that's using the same name, and it's lower in the scope.

Try changing all references in your code from "GenerateFrame" to "Me", make sure you don't change the actual name itself though.
Reply With Quote
  #4  
Old 06-23-2009, 12:28 PM
Daihoc's Avatar
Daihoc Daihoc is offline
Newcomer
 
Join Date: Jun 2009
Location: Torrance, California
Posts: 23
Thumbs up

Quote:
Originally Posted by wildfire1982 View Post
Hello,

Might be worth posting some more code as I have no idea what you are trying to do.

I would imagine you have changed something somewhere and caused some confusion. Sounds like it has gone a bit messy.
Thanks Chris for your quick response. I found the error. It was as a result of using a having a function using the same name as one of the forms. I blame that on sleep deprived coding.
Reply With Quote
  #5  
Old 06-23-2009, 12:31 PM
Daihoc's Avatar
Daihoc Daihoc is offline
Newcomer
 
Join Date: Jun 2009
Location: Torrance, California
Posts: 23
Default

Quote:
Originally Posted by Eradicator View Post
It sounds to me like you have a second variable that's using the same name, and it's lower in the scope.

Try changing all references in your code from "GenerateFrame" to "Me", make sure you don't change the actual name itself though.
Thanks Eradicator for the help. You made me think to look back at my function calls and found the error as a result.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->