Character replace in Quiz

Robert Mills robert.mills@windsong-services.co.uk
Thu, 6 Jan 2005 10:45:28 -0000


This is a multi-part message in MIME format.

------_=_NextPart_001_01C4F3DC.D5F4C13C
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dave,
=20
Cool (as my son would say). Had never thought of this method. Can think =
of several other uses for this.
=20
regards,=20
 =20
Robert W.Mills=20
Systems Development Manager=20
Windsong Services=20
(020) 8309 3604=20

-----Original Message-----
From: Knox, Dave (Dallas, CSC) [mailto:KnoxDa01@unisourcelink.com]
Sent: 05 January 2005 18:46
To: Robert Mills; PowerHouse Mail List (E-mail)
Subject: RE: Character replace in Quiz


Robert
=20
Use MPE system functions to do it for you...
=20
In your quiz...
=20
define D-REPLACE char*50 =3D '![repl("' + NAME + '",";"," ")]'
define D-NAME char*30 =3D getsystemval("D_REPL") if =
setsystemval("D_REPL",D-REPLACE)

Where NAME is your source field and D-NAME is the result.
=20
Regards
Dave Knox
=20

-----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,=20

Environment: Quiz 8.39.C running on MPE/iX 6.5=20

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,=20
 =20
Robert W.Mills=20
Systems Development Manager=20
Windsong Services=20
(020) 8309 3604=20


------_=_NextPart_001_01C4F3DC.D5F4C13C
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1476" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3D"Comic Sans MS" color=3D#0000ff size=3D2><SPAN=20
class=3D328504210-06012005>Dave,</SPAN></FONT></DIV>
<DIV><FONT face=3D"Comic Sans MS" color=3D#0000ff size=3D2><SPAN=20
class=3D328504210-06012005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Comic Sans MS" color=3D#0000ff size=3D2><SPAN=20
class=3D328504210-06012005>Cool (as my son would say). Had never thought =
of this=20
method. Can think of several other uses for this.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Comic Sans MS" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Comic Sans MS" size=3D2>regards,</FONT> <BR><FONT=20
face=3DArial>&nbsp;</FONT> <BR><FONT face=3D"Comic Sans MS" =
size=3D2>Robert=20
W.Mills</FONT> <BR><FONT face=3D"Comic Sans MS" size=3D2>Systems =
Development=20
Manager</FONT> <BR><FONT face=3D"Comic Sans MS" size=3D2>Windsong =
Services</FONT>=20
<BR><FONT face=3D"Comic Sans MS" size=3D2>(0</FONT><FONT face=3D"Comic =
Sans MS"=20
size=3D2>20</FONT><FONT face=3D"Comic Sans MS" size=3D2>)</FONT> <FONT=20
face=3D"Comic Sans MS" size=3D2>8309 3604</FONT> </DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Knox, Dave =
(Dallas, CSC)=20
  [mailto:KnoxDa01@unisourcelink.com]<BR><B>Sent:</B> 05 January 2005=20
  18:46<BR><B>To:</B> Robert Mills; PowerHouse Mail List=20
  (E-mail)<BR><B>Subject:</B> RE: Character replace in =
Quiz<BR><BR></FONT></DIV>
  <DIV><SPAN class=3D102072618-05012005><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Robert</FONT></SPAN></DIV>
  <DIV><SPAN class=3D102072618-05012005><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D102072618-05012005><FONT face=3DArial =
color=3D#0000ff size=3D2>Use=20
  MPE system functions to do it for you...</FONT></SPAN></DIV>
  <DIV><SPAN class=3D102072618-05012005><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D102072618-05012005><FONT face=3DArial =
color=3D#0000ff size=3D2>In=20
  your quiz...</FONT></SPAN></DIV>
  <DIV><FONT face=3Dr_ansi color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3Dr_ansi color=3D#0000ff size=3D2>define D-REPLACE =
char*50 =3D<SPAN=20
  class=3D102072618-05012005> '![repl("' + NAME + '",";","=20
  ")]'</SPAN><BR></FONT><FONT face=3Dr_ansi color=3D#0000ff =
size=3D2>define D-NAME=20
  char*30 =3D getsystemval("D_REPL")&nbsp;if=20
  setsystemval("D_REPL",D-REPLACE)<BR></DIV></FONT>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D102072618-05012005>Where NAME is your source field and D-NAME =
is the=20
  result.</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D102072618-05012005></SPAN></FONT><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2><SPAN class=3D102072618-05012005></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D102072618-05012005>Regards</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D102072618-05012005>Dave=20
  Knox</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D102072618-05012005></SPAN></FONT>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
    <DIV></DIV>
    <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
    face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
    powerh-l-admin@lists.sowder.com =
[mailto:powerh-l-admin@lists.sowder.com]=20
    <B>On Behalf Of </B>Robert Mills<BR><B>Sent:</B> Wednesday, January =
05, 2005=20
    12:06 PM<BR><B>To:</B> PowerHouse Mail List =
(E-mail)<BR><B>Subject:</B>=20
    Character replace in Quiz<BR><BR></FONT></DIV><!-- Converted from =
text/rtf format -->
    <P><FONT face=3D"Comic Sans MS" size=3D2>Greetings to the -L,</FONT> =
</P>
    <P><FONT face=3D"Comic Sans MS" size=3D2>Environment: Quiz 8.39.C =
running on=20
    MPE/iX 6.5</FONT> </P>
    <P><FONT face=3D"Comic Sans MS" size=3D2>I have a char*30 source =
field that may=20
    contain any number of semi-colons which I need to replace with =
spaces. Any=20
    advice on the most efficient way of doing this?</FONT></P>
    <P><FONT face=3D"Comic Sans MS" size=3D2>regards,</FONT> <BR><FONT=20
    face=3DArial>&nbsp;</FONT> <BR><FONT face=3D"Comic Sans MS" =
size=3D2>Robert=20
    W.Mills</FONT> <BR><FONT face=3D"Comic Sans MS" size=3D2>Systems =
Development=20
    Manager</FONT> <BR><FONT face=3D"Comic Sans MS" size=3D2>Windsong=20
    Services</FONT> <BR><FONT face=3D"Comic Sans MS" size=3D2>(0<SPAN=20
    lang=3Den-gb></SPAN></FONT><SPAN lang=3Den-gb><FONT face=3D"Comic =
Sans MS"=20
    size=3D2>20</FONT></SPAN><SPAN lang=3Den-us></SPAN><SPAN =
lang=3Den-us><FONT=20
    face=3D"Comic Sans MS" size=3D2>)</FONT></SPAN><SPAN =
lang=3Den-gb></SPAN><SPAN=20
    lang=3Den-gb> <FONT face=3D"Comic Sans MS" size=3D2>8309 =
3604</FONT></SPAN><SPAN=20
    lang=3Den-us></SPAN><SPAN lang=3Den-us></SPAN><SPAN =
lang=3Den-us></SPAN>=20
  </P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C4F3DC.D5F4C13C--