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 


Visual Basic "Expressions" error help

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

Joined: 26 Jun 2006
Posts: 365
Location: a,b,c++

PostPosted: Fri Jul 27, 2007 10:09 am    Post subject: Visual Basic "Expressions" error help Reply with quote

Can someone please help me figure it out?

This is my code:

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        f1.SetVariable('ammo','999');

    End Sub



When i build it, i get this problem:

Code:
Error   1   Expression expected.


f1.SetVariable('ammo','999')

I get the error at the first parenthesis (right after the "Set Variable")


_________________
c++ pointers...
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Fri Jul 27, 2007 10:19 am    Post subject: Reply with quote

VB uses double quotes to specify strings. A single quote starts a single line comment, the equivalent of // in C based languages.
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
gmaster1440
Master Cheater
Reputation: 0

Joined: 26 Jun 2006
Posts: 365
Location: a,b,c++

PostPosted: Fri Jul 27, 2007 10:20 am    Post subject: Reply with quote

Thanks man! Very helpful1 Rep
_________________
c++ pointers...
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