Character Replacement
Bill D Michael
Bill.Michael@ipaper.com
Tue, 27 Feb 2001 13:13:39 -0600
Looking for a way in QTP (or Quiz) to replace all occurances of a single
character in a field with another character - for example, the record might
contain "---- this is a test ----", and I want to update it to contain "
==== this is a test ====". Primarily because we have users entering
"illegal" characters into text fields on Quick screens that cause problems
much later, such as quotes, slashes, and @ signs.
The manual refers to a "substitution character", ^, but I believe this is
only for error messages and such and can't be used for what I want here. I
can replace a single occurrance using INDEX and the [] syntax, but since
there could be two or twenty, I'd have to run "n" requests to accomplish
the whole thing.
Bill
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.