[UNSOLVED] Help SIMPLE pawn identer -
SlashPT - 01.03.2010
Hey all like you can see on tittle says im doing one SIMPLE pawn identer so what i need its if i put in one TextBox a
and if i press the buttom it put on textbox2 this
im doing one VISUAL BASIC 2008 i used this code
Код:
If RichTextBox1.Text = "}else" Then
RichTextBox2.Text = "}" & Environment.NewLine & "else"
but the problem with this code itґs if i put
on textbox1
on textbox2 dont appears nothing
can anyone help me in advance thanks
Re: Help SIMPLE pawn identer -
Kyosaur - 01.03.2010
Quote:
Originally Posted by DarK TeaM PT
Hey all like you can see on tittle says im doing one SIMPLE pawn identer so what i need its if i put in one TextBox a
and if i press the buttom it put on textbox2 this
im doing one VISUAL BASIC 2008 i used this code
Код:
If RichTextBox1.Text = "}else" Then
RichTextBox2.Text = "}" & Environment.NewLine & "else"
but the problem with this code itґs if i put
on textbox1
on textbox2 dont appears nothing
can anyone help me in advance thanks
|
I wouldnt do it that way lol. Your program is going to be ridiculously long if you have to map out every condition; you should simply just check for open curly braces, and closing curly braces. Just check all the braces in the textbox to see if there is text on the same line, if there is move it to a new line and the continue checking and fixing the indentation. For every open brace, indent the following text four spaces. For the closing braces simply remove four spaces from the following text.
Re: Help SIMPLE pawn identer -
SlashPT - 01.03.2010
yeah and how to do it?? im new to VB...
Re: Help SIMPLE pawn identer -
Kyosaur - 01.03.2010
Quote:
Originally Posted by DarK TeaM PT
yeah and how to do it?? im new to VB...
|
It's been a while since i've poked around it, so im not entirely sure. I only know how to go about making it, sorry.
You should learn the language before trying to make something like this lol.
Re: Help SIMPLE pawn identer -
iLinx - 01.03.2010
I've never programmed in VB before but by looking at its syntax your checking if the WHOLE textbox is equal to }else
I would just make it check if theres a {, and if there is just use escape characters to indent and space it.
Re: Help SIMPLE pawn identer -
AcId n RaPiD - 01.03.2010
VB is almost compared to the pawno language, but barely. It just looks alike, nothing hard about it.
Re: Help SIMPLE pawn identer -
Kyosaur - 01.03.2010
Quote:
Originally Posted by ѓαΓKΣΩ
VB is almost compared to the pawno language, but barely. It just looks alike, nothing hard about it.
|
Not true at all.
Re: Help SIMPLE pawn identer -
iLinx - 02.03.2010
Quote:
Originally Posted by ѓαΓKΣΩ
VB is almost compared to the pawno language, but barely. It just looks alike, nothing hard about it.
|
Pawno has a C syntax.
VB is just fucked imo, oldschool programming language
Re: Help SIMPLE pawn identer -
Norn - 02.03.2010
It's an easy language, just ****** c indentifier VB.net and make the changes.
Re: [UNSOLVED] Help SIMPLE pawn identer -
SlashPT - 02.03.2010
ha what ??...
what should i do idk very much about VB if you know VB just put here plz