How would i make a BBCode Generater in VB
i 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.php
but i cannot figue it out...
So Some1 plz help me
iBotModz CBox
[VB HELP]How Would I Make a BB Code Generater
Started by BTKC124, Mar 23 2009 01:49 PM
3 replies to this topic
#1
Posted 23 March 2009 - 01:49 PM
#2
Posted 23 March 2009 - 04:52 PM
Count the characters they inputted, loop through starting with the beginning of phrase and parse it out surrounded in tags
& [color= & colorhex & "]" & etc
#3
Posted 22 April 2009 - 04:26 PM
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]
#4
Posted 25 April 2009 - 09:11 PM
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