| View previous topic :: View next topic |
| Author |
Message |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Thu Jul 23, 2009 2:28 am Post subject: VB.Net Help |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Jul 23, 2009 2:40 am Post subject: |
|
|
??
Do you mean string concatenation? The + operator does it in .NET
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Thu Jul 23, 2009 11:19 am Post subject: |
|
|
Isn't it & in VB.NET though? I know in C# its +
_________________
|
|
| Back to top |
|
 |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Thu Jul 23, 2009 12:54 pm Post subject: |
|
|
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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Thu Jul 23, 2009 1:05 pm Post subject: |
|
|
I believe it would be:
| Code: | | shockwaveflash.movie = "http://www.nbc.com/Deal_or_No_Deal/game/" & Text1.Text |
_________________
|
|
| Back to top |
|
 |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Thu Jul 23, 2009 1:42 pm Post subject: |
|
|
| 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 |
|
 |
Cheat Engine User Something epic
Reputation: 61
Joined: 22 Jun 2007 Posts: 2071
|
Posted: Thu Jul 23, 2009 3:26 pm Post subject: |
|
|
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 |
|
 |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Thu Jul 23, 2009 3:36 pm Post subject: |
|
|
| 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 |
|
 |
Cheat Engine User Something epic
Reputation: 61
Joined: 22 Jun 2007 Posts: 2071
|
Posted: Thu Jul 23, 2009 3:41 pm Post subject: |
|
|
| 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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Jul 23, 2009 4:06 pm Post subject: |
|
|
| 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.
Anyway, if you are building some gigantic string (such as in a loop) you should be using StringBuilder.
|
|
| Back to top |
|
 |
|