Declaration Expected!!!!!!!!!!!!
I'm not a very good programmer. Just throwing that out there, but i've also only been trying it for like 2 weeks. I use VB express 2005 and im just fiddling around with some functions. So far i can type words click a button and they are displayed in the rich text box. EXCITING:D
Code:
Public Class Form1
Private Sub Displaytextbutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Displaytextbutton.Click
DisplayBox.Text = DisplayBox.Text + Textinputbox.Text
End Sub
End Class
Now what i'm trying to do is use a module to detect any functional inputs
such as
Clear Screen
Delete Last input
etc...
right now all i want is for my main form to call the module (_erase) and by calling it the rich textbox gets cleared. In my form i want to set up the functions.
EX.
If textinputbox.text = ("delete")
then
erase()
something along that line. I can't test it because when im writing the code it says declaration expected under displaybox no matter what i do.
Code:
Module _erase
Displaybox.text = ("")
End Module
Basically...how do i declare display box
-Blackout
Re: Declaration Expected!!!!!!!!!!!!
You can't call a module... a module is a collection of subs and functions....
Code:
Module MyStuff
Public Sub erase
Displaybox.text = ("")
End Sub
End Module
-tg
Re: Declaration Expected!!!!!!!!!!!!
Use YourFormName.Displaybox.text
and you should use YourFormName.Displaybox.text = system.string.empty.
Hope that helps.
Re: Declaration Expected!!!!!!!!!!!!
I misunderstood your question.
Techgnome is right. Sorry.
Re: Declaration Expected!!!!!!!!!!!!
Thank You
i think i can get it working now
-blackout