mIRC Homepage
Posted By: zorin Need some help with $replace :) - 20/10/06 10:02 PM
I want the first letter to be replaced with a uppercase letter

Code:
//var %one poteto potato | var %two $replace(%one,p,P) | echo %two

Returns: Poteto Potato
But I only want the first letter to be replaced.

Code:
//var %one poteto potato | var %two $replace( $left(%one,1) ,p,P) | echo %two

Testing something like this, but it only returns the first letter.. not the rest of the word
Posted By: Karas Re: Need some help with $replace :) - 20/10/06 10:20 PM
//var %a = pota pota | echo -a $upper($left(%a,1)) $+ $mid(%a,2)

smile
Posted By: zorin Re: Need some help with $replace :) - 20/10/06 10:37 PM
Awsome! Tnx for the fast reply laugh
© mIRC Discussion Forums