Character replace in Quiz
Knox, Dave (Dallas, CSC)
KnoxDa01@unisourcelink.com
Wed, 5 Jan 2005 13:46:03 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C4F356.CE82B0E8
Content-Type: text/plain
Robert
Use MPE system functions to do it for you...
In your quiz...
define D-REPLACE char*50 = '![repl("' + NAME + '",";"," ")]'
define D-NAME char*30 = getsystemval("D_REPL") if
setsystemval("D_REPL",D-REPLACE)
Where NAME is your source field and D-NAME is the result.
Regards
Dave Knox
-----Original Message-----
From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com] On Behalf Of Robert Mills
Sent: Wednesday, January 05, 2005 12:06 PM
To: PowerHouse Mail List (E-mail)
Subject: Character replace in Quiz
Greetings to the -L,
Environment: Quiz 8.39.C running on MPE/iX 6.5
I have a char*30 source field that may contain any number of semi-colons
which I need to replace with spaces. Any advice on the most efficient way of
doing this?
regards,
Robert W.Mills
Systems Development Manager
Windsong Services
(020) 8309 3604
------_=_NextPart_001_01C4F356.CE82B0E8
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=102072618-05012005><FONT face=Arial color=#0000ff
size=2>Robert</FONT></SPAN></DIV>
<DIV><SPAN class=102072618-05012005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=102072618-05012005><FONT face=Arial color=#0000ff size=2>Use
MPE system functions to do it for you...</FONT></SPAN></DIV>
<DIV><SPAN class=102072618-05012005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=102072618-05012005><FONT face=Arial color=#0000ff size=2>In
your quiz...</FONT></SPAN></DIV>
<DIV><FONT face=r_ansi color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=r_ansi color=#0000ff size=2>define D-REPLACE char*50 =<SPAN
class=102072618-05012005> '![repl("' + NAME + '",";","
")]'</SPAN><BR></FONT><FONT face=r_ansi color=#0000ff size=2>define D-NAME
char*30 = getsystemval("D_REPL") if
setsystemval("D_REPL",D-REPLACE)<BR></DIV></FONT>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=102072618-05012005>Where
NAME is your source field and D-NAME is the result.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=102072618-05012005></SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=102072618-05012005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=102072618-05012005>Regards</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=102072618-05012005>Dave
Knox</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=102072618-05012005></SPAN></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
powerh-l-admin@lists.sowder.com [mailto:powerh-l-admin@lists.sowder.com] <B>On
Behalf Of </B>Robert Mills<BR><B>Sent:</B> Wednesday, January 05, 2005 12:06
PM<BR><B>To:</B> PowerHouse Mail List (E-mail)<BR><B>Subject:</B> Character
replace in Quiz<BR><BR></FONT></DIV><!-- Converted from text/rtf format -->
<P><FONT face="Comic Sans MS" size=2>Greetings to the -L,</FONT> </P>
<P><FONT face="Comic Sans MS" size=2>Environment: Quiz 8.39.C running on
MPE/iX 6.5</FONT> </P>
<P><FONT face="Comic Sans MS" size=2>I have a char*30 source field that may
contain any number of semi-colons which I need to replace with spaces. Any
advice on the most efficient way of doing this?</FONT></P>
<P><FONT face="Comic Sans MS" size=2>regards,</FONT> <BR><FONT
face=Arial> </FONT> <BR><FONT face="Comic Sans MS" size=2>Robert
W.Mills</FONT> <BR><FONT face="Comic Sans MS" size=2>Systems Development
Manager</FONT> <BR><FONT face="Comic Sans MS" size=2>Windsong Services</FONT>
<BR><FONT face="Comic Sans MS" size=2>(0<SPAN lang=en-gb></SPAN></FONT><SPAN
lang=en-gb><FONT face="Comic Sans MS" size=2>20</FONT></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us><FONT face="Comic Sans MS"
size=2>)</FONT></SPAN><SPAN lang=en-gb></SPAN><SPAN lang=en-gb> <FONT
face="Comic Sans MS" size=2>8309 3604</FONT></SPAN><SPAN
lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN>
</P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C4F356.CE82B0E8--