Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Q] VB 2008 Error

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
1337pwnage1337
Expert Cheater
Reputation: 0

Joined: 08 Oct 2008
Posts: 190
Location: last seen off the coast of hopes and dreams

PostPosted: Mon Jan 26, 2009 9:01 am    Post subject: [Q] VB 2008 Error Reply with quote

I am getting this error:
Code:
Error1: 'Form1' is a type in 'FTP_Uploader' and cannot be used as an expression. C:\Documents and Settings\My Documents\Visual Studio 2008\Projects\FTP Uploader\FTP Uploader\Form1.Designer.vb FTP Uploader
with the attached source Do Not COPY MY SOURCE!!!!

There is 2 +reps for anyone that can help!



The Extension 'zip' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
Back to top
View user's profile Send private message AIM Address
mathewthe2
Grandmaster Cheater
Reputation: 0

Joined: 28 Aug 2008
Posts: 562
Location: behind you... BOO!

PostPosted: Fri Jan 30, 2009 9:23 am    Post subject: Reply with quote

I dont really program in vb2008, so I couldn't open the files, but according to the error code, you must have referred to form1 somewhere in form1, use 'Me' without quotations instead.
_________________
This is what you get if you scan a noob game with my -Mth2- Scanner-
Back to top
View user's profile Send private message MSN Messenger
1337pwnage1337
Expert Cheater
Reputation: 0

Joined: 08 Oct 2008
Posts: 190
Location: last seen off the coast of hopes and dreams

PostPosted: Fri Jan 30, 2009 12:46 pm    Post subject: Reply with quote

mathewthe2 wrote:
I dont really program in vb2008, so I couldn't open the files, but according to the error code, you must have referred to form1 somewhere in form1, use 'Me' without quotations instead.


but there is no others except that which is NEEDED

_________________
Back to top
View user's profile Send private message AIM Address
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Fri Jan 30, 2009 2:35 pm    Post subject: Reply with quote

Code:

Public Sub New(ByVal Filename As String)
        _filename = Filename
    End Sub


This is where the error is. One of the major downfalls of vb is that it is not case sensitive. That means new, New, nEw, etc. are the same. Since new is a keyword, you can't use it to name a variable, function, or anything that you want to use. To fix the error, you have to rename it or append an underscore to the beginning.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites