Valhalla Legends Forums Archive | Battle.net Bot Development | Like & Replace

AuthorMessageTime
AsYLuM
would there be any way, that i could replace a word in a string containing about 10 words, if it had it

Dim abc as string
Dim def as string
dim ghi as string

abc = "This is the message"
def = "*Message"
ghi = "Comment"

if lcase(abc) like lcase(def) then
How would i replace the "Message" in abc with "Comment" from ghi?
March 19, 2003, 4:30 PM
Grok
abc = Replace(abc, def, ghi)
March 19, 2003, 5:00 PM
AsYLuM
Thanks!
March 19, 2003, 5:03 PM

Search