Hello!
G> All we need now is a combination of the %StrReplace and the %StrTr
G> macro, because the %StrReplace only lets you replace one word. Or
G> is there a way to place the result in a buffer and use it again in
G> the %StrReplace macro?
Do you mean nested calls?
%StrReplace(%StrReplace('abc','a','X'),'c','Y')
If there are too many:
%_MyCoolText='abcdefg'%-
%_MyCoolText=%StrReplace(%_MyCoolText,'a','1')%-
%_MyCoolText=%StrReplace(%_MyCoolText,'b','2')%-
%_MyCoolText=%StrReplace(%_MyCoolText,'c','3')%-
%_MyCoolText=%StrReplace(%_MyCoolText,'d','4')%-
%_MyCoolText=%StrReplace(%_MyCoolText,'e','5')%-
%_MyCoolText=%StrReplace(%_MyCoolText,'f','6')%-
%_MyCoolText=%StrReplace(%_MyCoolText,'g','7')%-
%_MyCoolText
--
Andrew Perevodchik
Kiev, Ukraine
Using The Bat! v2.01 on Windows XP 5.1 Build 2600
________________________________________________
Current version is 2.01.3 | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html