| View previous topic :: View next topic |
| Author |
Message |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Jan 23, 2008 10:38 am Post subject: Lock please |
|
|
I've gotten my answer. Lock please.
_________________
Last edited by I'm C.H. on Wed Jan 23, 2008 3:45 pm; edited 3 times in total |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Jan 23, 2008 10:40 am Post subject: |
|
|
| Code: | Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "You need to enter text into the box.", vbCritical, "Error."
Exit Sub
End If
'// Other code here if there is text...
End Sub |
_________________
- Retired. |
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Jan 23, 2008 10:42 am Post subject: |
|
|
I still get the message when a value IS entered.
_________________
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Wed Jan 23, 2008 10:45 am Post subject: |
|
|
This code will show the messagebox whenever you'll enter a value shorter than 1 letter.
| Code: | Private Sub Command1_Click()
If len(text1)<1
MsgBox "You need to enter text into the box.", vbCritical, "Error."
Exit Sub
else
'// Other code here if there is text...
end if
End Sub |
_________________
Intel over amd yes.
Last edited by NINTENDO on Wed Jan 23, 2008 10:46 am; edited 1 time in total |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Jan 23, 2008 10:46 am Post subject: |
|
|
| CheatingHacker wrote: | | I still get the message when a value IS entered. |
Uhh? You shouldn't be, you sure you wrote it correctly? If for what ever strange reason you are still getting any message, try using:
| Code: | | If Len(Text1.Text) = 0 Then |
_________________
- Retired. |
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Jan 23, 2008 10:47 am Post subject: |
|
|
| Naablet wrote: | Private Sub Command1_Click()
If len(text1)<1
MsgBox "You need to enter text into the box.", vbCritical, "Error."
Exit Sub
else
'// Other code here if there is text...
end if
End Sub |
That is almost the same as the one above exept the If len(text1<1 that doesn't work
_________________
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Wed Jan 23, 2008 10:47 am Post subject: |
|
|
| Wiccaan wrote: | | CheatingHacker wrote: | | I still get the message when a value IS entered. |
Uhh? You shouldn't be, you sure you wrote it correctly? If for what ever strange reason you are still getting any message, try using:
| Code: | | If Len(Text1.Text) = 0 Then |
|
ye thats what i said right? there is no need to steal orders code!
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Jan 23, 2008 10:52 am Post subject: |
|
|
Edit: Nvm. Got it. Thanks
_________________
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Wed Jan 23, 2008 10:53 am Post subject: |
|
|
| CheatingHacker wrote: | It still doesn't work. Still error message when entering value. My code:
| Code: | Private Sub StylerButton4_Click()
If Len(Text1.Text) = 0 Then
MsgBox "You need to enter text into the box.", vbCritical, "Error."
Exit Sub
Else
Game.Flash1.SetVariable "_root.hero._yscale", Text1.Text
End If
End Sub |
|
what error message do u get?
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Jan 23, 2008 10:54 am Post subject: |
|
|
I got it working. nvm.
_________________
|
|
| Back to top |
|
 |
stealthy17 Expert Cheater
Reputation: 0
Joined: 10 Apr 2007 Posts: 144 Location: The Netherlands
|
Posted: Wed Jan 23, 2008 11:02 am Post subject: |
|
|
why close it.. how selfish
others could be looking for the same
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Wed Jan 23, 2008 11:04 am Post subject: |
|
|
| stealthy17 wrote: | why close it.. how selfish
others could be looking for the same |
I agree.
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Jan 23, 2008 2:16 pm Post subject: |
|
|
| stealthy17 wrote: | why close it.. how selfish
others could be looking for the same |
Just because it gets locked doesn't mean it dissapears
_________________
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
|
| Back to top |
|
 |
|