[UNSOLVED] Help SIMPLE pawn identer
#1

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

pawn Код:
}else
and if i press the buttom it put on textbox2 this

pawn Код:
}
else
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

pawn Код:
}else
pawn Код:
}else

on textbox2 dont appears nothing

can anyone help me in advance thanks
Reply
#2

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

pawn Код:
}else
and if i press the buttom it put on textbox2 this

pawn Код:
}
else
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

pawn Код:
}else
pawn Код:
}else

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.


Reply
#3

yeah and how to do it?? im new to VB...
Reply
#4

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.
Reply
#5

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.
Reply
#6

VB is almost compared to the pawno language, but barely. It just looks alike, nothing hard about it.
Reply
#7

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.
Reply
#8

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
Reply
#9

It's an easy language, just ****** c indentifier VB.net and make the changes.
Reply
#10

ha what ??...

what should i do idk very much about VB if you know VB just put here plz
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)