[UNSOLVED] Help SIMPLE pawn identer
#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


Messages In This Thread
[UNSOLVED] Help SIMPLE pawn identer - by SlashPT - 01.03.2010, 19:16
Re: Help SIMPLE pawn identer - by Kyosaur - 01.03.2010, 20:31
Re: Help SIMPLE pawn identer - by SlashPT - 01.03.2010, 21:00
Re: Help SIMPLE pawn identer - by Kyosaur - 01.03.2010, 21:07
Re: Help SIMPLE pawn identer - by iLinx - 01.03.2010, 21:15
Re: Help SIMPLE pawn identer - by AcId n RaPiD - 01.03.2010, 21:53
Re: Help SIMPLE pawn identer - by Kyosaur - 01.03.2010, 22:18
Re: Help SIMPLE pawn identer - by iLinx - 02.03.2010, 00:23
Re: Help SIMPLE pawn identer - by Norn - 02.03.2010, 00:36
Re: [UNSOLVED] Help SIMPLE pawn identer - by SlashPT - 02.03.2010, 12:45

Forum Jump:


Users browsing this thread: 4 Guest(s)