Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace Function Parameters

Status
Not open for further replies.

rjstephan

Technical User
Mar 15, 2002
15
US
How do you make a collection reference to all fields in a table as the first argument in the Replace function of A2K? I want to replace ABC with XYZ in all fields in a table.
Thanks.
 
rj,

The Replace function only takes strings as arguments. You
will have to iterate through each of the fields and pass
their values to the Replace function. Also, you will have
to interate through each record in the table.

Wayne
 
You can also include a call to the Replace function, or I've seen in some cases where you need a wrapper around the Replace, in an SQL Update statement.

UPDATE <tablename>
SET <fieldname> = Relace(<fieldname>, <from>, <to>)


Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top