| Mirage Source http://www.miragesource.net/forums/ |
|
| Compile Error... http://www.miragesource.net/forums/viewtopic.php?f=201&t=4375 |
Page 1 of 1 |
| Author: | Nean [ Fri Sep 19, 2008 11:12 pm ] |
| Post subject: | Compile Error... |
I had to reprogram everything, in the new MS4, because I lost it all (Yay), but now in my new and improved Admin panel, when I try to push the ban button, to send a ban, to the char in the txtbox, it says that theres a compile error, method or data member not found. Heres what I have for the button: Code: Private Sub btnban_Click() If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then Call SendBan(Trim(txtchar.Text)) End If End Sub Yes, the textbox is named txchar. However, when I double click the txtbox, it has this: Code: Private Sub txtchar_Change(Index As Integer) End Sub Sorry to pester you all about such trivial shit, but I'd really like a fix. I tried myself, but to no avail. |
|
| Author: | GIAKEN [ Fri Sep 19, 2008 11:15 pm ] |
| Post subject: | Re: Compile Error... |
Alright in the properties of the txtchat make sure that the index is blank. |
|
| Author: | Mattyw [ Fri Sep 19, 2008 11:16 pm ] |
| Post subject: | Re: Compile Error... |
Well mine is: Code: Private Sub btnBan_Click() If GetPlayerAccess(MyIndex) >= ADMIN_CREATOR Then Call SendBan(Trim$(txtPlayer.Text)) End If End Sub Only code difference(apart from access) I see is the $. Try adding that? No idea. :S |
|
| Author: | Nean [ Fri Sep 19, 2008 11:20 pm ] |
| Post subject: | Re: Compile Error... |
@Giaken: Index is at 0 @Matt: Didn't work. Could it be that I have a control array setup? |
|
| Author: | GIAKEN [ Fri Sep 19, 2008 11:22 pm ] |
| Post subject: | Re: Compile Error... |
It needs to be blank. |
|
| Author: | Nean [ Fri Sep 19, 2008 11:25 pm ] |
| Post subject: | Re: Compile Error... |
GIAKEN wrote: It needs to be blank. I can't. Code: Can't clear index property, without changing name FIXED. I did it. Just had to get rid of control array. |
|
| Author: | GIAKEN [ Fri Sep 19, 2008 11:27 pm ] |
| Post subject: | Re: Compile Error... |
Click the text box, go into the properties box, and look down for Index and to the right of that you'll see "0" or whatever. Just back space that. Also you'll need to change the name because of conflicts with the other text box. |
|
| Author: | Nean [ Fri Sep 19, 2008 11:29 pm ] |
| Post subject: | Re: Compile Error... |
GIAKEN wrote: Click the text box, go into the properties box, and look down for Index and to the right of that you'll see "0" or whatever. Just back space that. Also you'll need to change the name because of conflicts with the other text box. Yeah, I couldn't backspace because i guess I had a control array. I had a bunch of textboxes, with the same name. T_T; |
|
| Author: | GIAKEN [ Fri Sep 19, 2008 11:30 pm ] |
| Post subject: | Re: Compile Error... |
Yeah...whenever it asks you if you want to make a control array just say no. |
|
| Author: | Nean [ Fri Sep 19, 2008 11:48 pm ] |
| Post subject: | Re: Compile Error... |
GIAKEN wrote: Yeah...whenever it asks you if you want to make a control array just say no. Yeah... I usually do... I just wanted to see what it'd do. |
|
| Author: | Jacob [ Sat Sep 20, 2008 1:48 am ] |
| Post subject: | Re: Compile Error... |
Do you have a sub call SendBan? |
|
| Author: | Nean [ Sat Sep 20, 2008 1:51 am ] |
| Post subject: | Re: Compile Error... |
Dugor wrote: Do you have a sub call SendBan? Yeah, I had everything. It was just some stupid control array problem I had. It's fixed now though. =) |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|