| View previous topic :: View next topic |
| Author |
Message |
asianking2 How do I cheat?
Reputation: 0
Joined: 26 Jun 2008 Posts: 9
|
Posted: Mon Jul 07, 2008 3:45 pm Post subject: VB - converting problem - need help |
|
|
Private Sub ManaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles HealthToolStripMenuItem.Click
Call Flash.SetVariable("health", textbox1)
End Sub
Error 3 Value of type 'System.Windows.Forms.ToolStripTextBox' cannot be converted to 'String'.
-----------------------------------------------------------------------------------
can this work other way around instead of having to convert to string? or is there a way i can convert it to string?
|
|
| Back to top |
|
 |
Typhoon808 Expert Cheater
Reputation: 0
Joined: 27 Mar 2008 Posts: 175 Location: Wales
|
Posted: Mon Jul 07, 2008 4:58 pm Post subject: |
|
|
| Call Flash.SetVariable("health", textbox1.text)
|
|
| Back to top |
|
 |
merlin22 Master Cheater
Reputation: 0
Joined: 29 Mar 2008 Posts: 267
|
Posted: Mon Jul 07, 2008 4:58 pm Post subject: |
|
|
What exactly are you trying to do with all that?
is this what you mean?
| Code: |
Private Sub Command1_Click()
Call swf.SetVariable("health", textbox1)
End Sub |
edit: | Typhoon808 wrote: | | Call Flash.SetVariable("health", textbox1.text) |
You dont have to write the .text part.
|
|
| Back to top |
|
 |
asianking2 How do I cheat?
Reputation: 0
Joined: 26 Jun 2008 Posts: 9
|
Posted: Mon Jul 07, 2008 9:13 pm Post subject: |
|
|
got it!
work with SetVariable ("health", textbox1.text)
thanks a lot guys...
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Mon Jul 07, 2008 9:45 pm Post subject: |
|
|
| merlin22 wrote: | What exactly are you trying to do with all that?
is this what you mean?
| Code: |
Private Sub Command1_Click()
Call swf.SetVariable("health", textbox1)
End Sub |
edit: | Typhoon808 wrote: | | Call Flash.SetVariable("health", textbox1.text) |
You dont have to write the .text part. |
yes you do if you're using .Net
that guy is probably using VB 2008.
_________________
|
|
| Back to top |
|
 |
|