substitution of characters

Knox, Dave (Dallas CSC Citrix) knoxda01@unisourcelink.com
Wed, 25 Aug 1999 10:09:02 -0400


In QUICK...

for 25 
begin
    if t-val[occurrence:1] = " "
       then let t-val = t-val[1:occurrence - 1] + "_" +
t-val[occurrence+1:25]
end

In QUIZ/QTP...

def t1 char*1 = "_" if t-val[1:1] = " " else t-val[1:1]
def t2 char*1 = "_" if t-val[2:1] = " " else t-val[2:1]
def t3 char*1 = "_" if t-val[3:1] = " " else t-val[3:1]
...etc.

def t-new char*25 = t1+t2+t3... etc.

long winded but simple...

> ----------
> From: 	Johan Koelewijn[SMTP:johan@vandijkgroep.nl]
> Sent: 	Wednesday, August 25, 1999 7:01 AM
> To: 	powerh-l@lists.swau.edu
> Subject: 	substitution of characters
> 
> Hello,
> 
> Is the following possible in powerhouse (quick,quiz) :
> 
> I have an item (for example char*25) that contains "THIS IS A TEST
> 
>  " and I want
> to convert the spaces to underscores so that the item contains 
> "THIS_IS_A_TEST___________"
> 
> Any suggestions ?
> 
> Johan Koelewijn
> Van Dijk Delft BV
> johan@vandijkgroep.nl
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> =
> Subscribe: "subscribe powerh-l" in message body to
> majordomo@lists.swau.edu
> Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
> powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
> This list is closed, thus to post to the list, you must be a subscriber.
> 
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.