BTKC124 Posted March 23, 2009 Report Posted March 23, 2009 How would i make a BBCode Generater in VBi dont know ANYTHING about making programs but i have common sence. i wanna make a app that does Rainbow color text in BBcode Like this website http://humdi.net/bbcoderb.phpbut i cannot figue it out... So Some1 plz help me
iBotPeaches Posted March 23, 2009 Report Posted March 23, 2009 Count the characters they inputted, loop through starting with the beginning of phrase and parse it out surrounded in tags & " & etc
NOPxK9 Posted April 22, 2009 Report Posted April 22, 2009 Count the characters they inputted, loop through starting with the beginning of phrase and parse it out surrounded in tags If you have it in a form then just when you hit a button take the string then add a [W.E]string[/W.E]
Dark Slipstream Posted April 26, 2009 Report Posted April 26, 2009 Only thing you need to do is find a way to fill an array full of colors, then just do this: Dim myColors() As String = {"green", "pink", "blue", "red", "yellow"} 'etc. Dim strToEdit As String = "Dark Slipstream is a Sub-Admin!" 'String to transform Dim newStr As String = Nothing 'Make a New String Randomize 'Randomizes Randomly Generated Numbers Dim x As Integer For Each c As Char In strToEdit x = Int(Rnd() * myColors.Length) 'Gets Random Color from Color Array newStr &= "[color=" & myColors(x) & "]" & c & "[/color]" 'Adds to New String Next
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now