how to separate all characters from a given string in vb6.0...For example if i give "welcome" in a text box ,in the same form it will print (w,e,l,c,o,m,e,)..........
Thanks in advance ...............
Private Function SeparateString(str As String) As String
Dim x As Integer
Dim retStr As String
retStr = ""
For x = 1 To Len(str)
retStr = retStr & Mid(str, x, 1) & ","
SeparateString = retStr
It is a function that receives the string you want to separate, and returns the separated string.
Hope it helps.
:) I have a regsubex function, and in that case all you would need to call, is regsubex(String,"\B",chr(44)) :-)
Public Function regsubex(Text As String, Pattern As String, ReplaceVar As String) As String
Dim myRegExp As RegExp
Set myRegExp = New RegExp
myRegExp.IgnoreCase = True
myRegExp.Global = True
myRegExp.Pattern = Pattern
Dim txt As String
txt = myRegExp.Replace(Text, ReplaceVar)
regsubex = txt
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...