RickJ
asked on
Convert some characters to uppercase.
Hello,
I would like some suggestions on the simplest function/procedure to do the following.
I have a string as follows;
This/is_my/test string.
I need it to be changed to this
This/Is_My/Test String.
Essentially I need to search for all occurences of '/' '_' and spaces, and uppercase the character following.
Hope this makes sense.
I would like some suggestions on the simplest function/procedure to do the following.
I have a string as follows;
This/is_my/test string.
I need it to be changed to this
This/Is_My/Test String.
Essentially I need to search for all occurences of '/' '_' and spaces, and uppercase the character following.
Hope this makes sense.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cool, thanks MerijnB
Works for me.
Works for me.
var st: string;
begin
st := RickJsUpperCase('This/is_m
form1.caption := st; // st is now 'This/Is_My/Test String.'
end;