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 


VB.Net Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Lyfa
The Lonely Man
Reputation: 12

Joined: 02 Nov 2008
Posts: 743

PostPosted: Thu Jul 23, 2009 2:28 am    Post subject: VB.Net Help Reply with quote

In Delphi 7 I can do

Code:
codecodecode'+Textbox1.Text(Or w/e)+'code code code


How would I do that in VB.Net or VB08 or w/e?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Jul 23, 2009 2:40 am    Post subject: Reply with quote

??

Do you mean string concatenation? The + operator does it in .NET
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Jul 23, 2009 11:19 am    Post subject: Reply with quote

Isn't it & in VB.NET though? I know in C# its +
_________________
Back to top
View user's profile Send private message
Lyfa
The Lonely Man
Reputation: 12

Joined: 02 Nov 2008
Posts: 743

PostPosted: Thu Jul 23, 2009 12:54 pm    Post subject: Reply with quote

Like
Code:
shockwaveflash.movie = "http://www.nbc.com/Deal_or_No_Deal/game/'+Text1.Text+'"


How could I do that in VB08/VB.NET?

That doesn't look right because I haven't used Delphi / Pascal for a while
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Jul 23, 2009 1:05 pm    Post subject: Reply with quote

I believe it would be:

Code:
shockwaveflash.movie = "http://www.nbc.com/Deal_or_No_Deal/game/" & Text1.Text

_________________
Back to top
View user's profile Send private message
Lyfa
The Lonely Man
Reputation: 12

Joined: 02 Nov 2008
Posts: 743

PostPosted: Thu Jul 23, 2009 1:42 pm    Post subject: Reply with quote

lurc wrote:
I believe it would be:

Code:
shockwaveflash.movie = "http://www.nbc.com/Deal_or_No_Deal/game/" & Text1.Text


Bad example, I'm trying to do

Code:
AxShockwaveFlash1.Setvariable("_root.(INSERT TEXTBOX HERE)", Textbox2.Text
Back to top
View user's profile Send private message
Cheat Engine User
Something epic
Ban
Reputation: 61

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Thu Jul 23, 2009 3:26 pm    Post subject: Reply with quote

Whoops, misread that:

Code:
AxShockwaveFlash1.Setvariable("_root." & textbox1.text, Textbox2.Text)


You should put this in a button_click event.


Last edited by Cheat Engine User on Thu Jul 23, 2009 3:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
Lyfa
The Lonely Man
Reputation: 12

Joined: 02 Nov 2008
Posts: 743

PostPosted: Thu Jul 23, 2009 3:36 pm    Post subject: Reply with quote

Holland wrote:
Should work, put it in a button.click


Your not giving me any code to work with, the last code I said doesn't work...
Back to top
View user's profile Send private message
Cheat Engine User
Something epic
Ban
Reputation: 61

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Thu Jul 23, 2009 3:41 pm    Post subject: Reply with quote

F3ar wrote:
Holland wrote:
Should work, put it in a button.click


Your not giving me any code to work with, the last code I said doesn't work...
Sorry, my bad. It's edited.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Jul 23, 2009 4:06 pm    Post subject: Reply with quote

lurc wrote:
Isn't it & in VB.NET though? I know in C# its +


Hmm yes, you are right.

It is confusing that the + operator does work in VB.net though.



Microsoft says it's generally not a good idea to use + for concatenation though because of ambiguity problems. Rolling Eyes

Anyway, if you are building some gigantic string (such as in a loop) you should be using StringBuilder.
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