FEATURE RICH
RAPID APPLICATION DEVELOPMENT
HELPING YOU OR YOUR CUSTOMERS
MANAGE THEIR BUSINESS

<-- Back to Commands (String)

{BSWAP(string, search, replace)}

This will look through the string for each character in the search string and replace it with the corresponding character in the replace string. 

So {BSWAP("[abc]", "[]", "()")} will turn "[abc]" into "(abc)"

Note:

This command can have an {END_BSWAP} command.

In this case, the string in-between will replace the first parameter and the format will be {BSWAP} string {END_BSWAP(parameters 2 onwards)}

This is particularly useful if the string is particularly long or contains commas.

Parameters
Number Name Default Type Description
1 string String The string to be searched and modified
2 search String The string of characters to search for
3 replace String The string of characters to use in the replace
Log in to add a Comment.