Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: AsYLuM on March 19, 2003, 10:30 AM

Title: Like & Replace
Post by: AsYLuM on March 19, 2003, 10:30 AM
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?
Title: Re: Like & Replace
Post by: Grok on March 19, 2003, 11:00 AM
abc = Replace(abc, def, ghi)
Title: Re: Like & Replace
Post by: AsYLuM on March 19, 2003, 11:03 AM
Thanks!