| O.P.  RE: VB Help With /Commands Ok, I chose to use the command code. Heres what I'm faced with now.  When i choose a variable such as:
 sResult = Replace(sCommandArg,"%cpu", CPUSpeed)
 
 it will work if the user does /xtest %cpu   but it wont work if anything else is in the text..such as:
 
 /xtest %cpu ...thats my CPU speed.
 
 However, if it is a string, and not a variable, it will work fine with other text.. for example see below.
 
 sResult = Replace(sCommandArg,"%cpu", "cpu speed")
 
 With that someone can type '/xtest look at my %cpu'  and it would result in MSN saying "look at my cpu speed"  instead of just returning nothing like the variable does.
 
 So now i am left confused as to why it doesnt allow extra text if it is a variable, but it does if it is a string.
 
 Any ideas?
 
 I really appreciate your help Jutx
 |