StrTran()

<< Click to Display Table of Contents >>

Navigation:  Index >

StrTran()

Previous pageReturn to chapter overviewNext page

Purpose

To search and replace characters in a string

Syntax

StrTran( <cSearchFor> , <cSearchIn> , <cReplaceWith>, <nStart>, <nCount> ) cNewString

Arguments

<cSearchFor> is the character string to search for

<cSearchIn> is the character string to search

<cReplaceWith> is the character string to replace <cSearchFor> with

<nStart> is the first occurrence of <cSearchFor> to replace

<nCount> is the number of replacements to make

Returns

StrTran() returns <cSearchIn> where <cSearchFor> is replaced with <cReplaceWith>.