Lionheart008
16-12-2009, 20:31
ok, just a test. perhaps anybody can tell me if this example is ok ? I am wondering only about the line with
songs = ParseCount( america(4), str ) '- result ?
nevertheless this little parse example works fine.
' Empty GUI script created on 12-16-2009 19:03:57 by (ThinAIR)
Function myParse () As Long
Dim str As String
Dim america(10) As String
Dim songs As Long
Dim t As String
str = "I am the best singer songwriter"
songs = Parse( "I,am,a,horse,with,no,name,in,the,desert", america(), "" )
songs = ParseCount( america(4), str ) '- missing result !
t = ParseCount("a,horse,with,no,name", "")
MsgBox 0, "parsecount ok?: " + Str$(t)
MsgBox 0, "5th word of song is: " + america(5)
MsgBox 0, "good night to my friend: " + america(4)
MsgBox 0, "Number of song words: " & UBound(america(1))
MsgBox 0, "yes, ok if it's 1: " + Str$(songs)
End Function
myparse
thanks for reply, frank
songs = ParseCount( america(4), str ) '- result ?
nevertheless this little parse example works fine.
' Empty GUI script created on 12-16-2009 19:03:57 by (ThinAIR)
Function myParse () As Long
Dim str As String
Dim america(10) As String
Dim songs As Long
Dim t As String
str = "I am the best singer songwriter"
songs = Parse( "I,am,a,horse,with,no,name,in,the,desert", america(), "" )
songs = ParseCount( america(4), str ) '- missing result !
t = ParseCount("a,horse,with,no,name", "")
MsgBox 0, "parsecount ok?: " + Str$(t)
MsgBox 0, "5th word of song is: " + america(5)
MsgBox 0, "good night to my friend: " + america(4)
MsgBox 0, "Number of song words: " & UBound(america(1))
MsgBox 0, "yes, ok if it's 1: " + Str$(songs)
End Function
myparse
thanks for reply, frank