<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Garamond;
        panose-1:2 2 4 4 3 3 1 1 8 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You could use n=strtok(&#8220;&#8217;&#8221;)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>N will be the location of the first instance of &#8216;.&nbsp; You could then test the value of the next character(s). If it what you expect, use mid to replace the &#8216; with whatever character(s) you want.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Richard<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Linda Gray [mailto:lc_gray@yahoo.com] <br><b>Sent:</b> Thursday, May 26, 2011 2:41 PM<br><b>To:</b> Richard Kreiss; Jeff Harrison; filepro-list@lists.celestial.com<br><b>Subject:</b> Re: edits help<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'>toHTML doesn't work for '<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Garamond","serif"'><o:p>&nbsp;</o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><hr size=1 width="100%" align=center></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Richard Kreiss &lt;rkreiss@verizon.net&gt;<br><b>To:</b> Jeff Harrison &lt;jeffaharrison@yahoo.com&gt;; Linda Gray &lt;lc_gray@yahoo.com&gt;; filepro-list@lists.celestial.com<br><b>Sent:</b> Thu, May 26, 2011 1:32:13 PM<br><b>Subject:</b> RE: edits help<br><br><br><br>&gt; -----Original Message-----<br>&gt; From: filepro-list-bounces+rkreiss=<a href="mailto:verizon.net@lists.celestial.com">verizon.net@lists.celestial.com</a><br>&gt; [mailto:filepro-list-bounces+rkreiss=<a href="mailto:verizon.net@lists.celestial.com">verizon.net@lists.celestial.com</a>] On<br>&gt; Behalf Of Jeff Harrison<br>&gt; Sent: Thursday, May 26, 2011 2:27 PM<br>&gt; To: Linda Gray; <a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a><br>&gt; Subject: Re: edits help<br>&gt; <br>&gt; ----- Original Message ----<br>&gt; <br>&gt; &gt; From: Linda Gray &lt;<a href="mailto:lc_gray@yahoo.com">lc_gray@yahoo.com</a>&gt;<br>&gt; &gt; To: Jay Ashworth &lt;<a href="mailto:jra@baylink.com">jra@baylink.com</a>&gt;; <a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a><br>&gt; &gt; Sent: Thu, May 26, 2011 1:13:21 PM<br>&gt; &gt; Subject: Re: edits help<br>&gt; &gt;<br>&gt; &gt; i'm not worried about the length of the end string.&nbsp; i need to replace<br>the '<br>&gt; &gt; with an html friendly string like the toHTML command does, except it<br>&gt; &gt;doesn't do<br>&gt; &gt;<br>&gt; &gt; the single quote.&nbsp; it was suggested that i do it with an&nbsp; edit.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; From: Jay Ashworth&nbsp; &lt;<a href="mailto:jra@baylink.com">jra@baylink.com</a>&gt;<br>&gt; &gt; To: <a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a><br>&gt; &gt; Sent:&nbsp; Thu, May 26, 2011 11:12:32 AM<br>&gt; &gt; Subject: Re: edits help<br>&gt; &gt;<br>&gt; &gt; ----- Original&nbsp; Message -----<br>&gt; &gt; &gt; From: &quot;Linda Gray&quot; &lt;<a href="mailto:lc_gray@yahoo.com">lc_gray@yahoo.com</a>&gt;<br>&gt; &gt;<br>&gt; &gt; &gt; I need to&nbsp; convert the ' to ' or %27 using an edit.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I'm not good at&nbsp; defining edits and sure would appreciate some help.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I need to&nbsp; replace the ' with it's HTML equivalent before writing<br>&gt; &gt; &gt; out ajax script&nbsp; that uses ' for strings and have names with ' in<br>them.<br>&gt; &gt;<br>&gt; &gt; So you need to&nbsp; URLescape an ASCII string; that's your end goal?<br>&gt; &gt;<br>&gt; &gt; My snap reaction is &quot;you&nbsp; don't want to do that with an edit, because<br>&gt; &gt; you can't guarantee how many&nbsp; characters you'll have to replace, and<br>&gt; &gt; you'll run out of space&quot;.&nbsp; You&nbsp; *probably* want to write code to do<br>&gt; &gt; that, as difficult as it is to handle&nbsp; functions in filePro.<br>&gt; &gt;<br>&gt; &gt; Cheers,<br>&gt; &gt; -- jra<br>&gt; &gt; --<br>&gt; &gt; Jay R. Ashworth&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Baylink<br><a href="mailto:jra@baylink.com">jra@baylink.com</a><br>&gt; &gt; Designer&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The Things I Think&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RFC<br>2100<br>&gt; &gt; Ashworth &amp; Associates&nbsp; &nbsp; <a href="http://baylink.pitas.com">http://baylink.pitas.com</a>&nbsp; &nbsp; &nbsp; &nbsp; 2000 Land Rover<br>DII<br>&gt; &gt; St Petersburg FL USA&nbsp; &nbsp; &nbsp; <a href="http://photo.imageinc.us">http://photo.imageinc.us</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +1 727<br>647<br>&gt; 1274<br>&gt; <br>&gt; <br>&gt; I would suggest that you NOT use an edit for this as well.&nbsp; I don't think<br>edits<br>&gt; work very well when you don't know how many of the &quot;from&quot; characters<br>&gt; may appear in the string.<br>&gt; <br>&gt; I would suggest doing this in processing - I think what you want to do is<br>&gt; replace every occurance of chr(&quot;39&quot;) with &quot;'&quot; that is the &quot;html<br>&gt; equivalent&quot;.<br>&gt; (not url escape - I assume that is not your goal)<br>&gt; <br>&gt; Does filepro have a &quot;replace&quot; function?&nbsp; I don't see one in 5.0 anyway.<br>Xlate<br>&gt; seems to work on a character by character basis, so I don't think you can<br>use<br>&gt; that.&nbsp; I think you will need to write this using mid and instr.<br><br>SEE TOHTML()<br><br>Richard<br><br>&gt; <br>&gt; I suppose Ken will now show us how to do this with an edit. :-)<br>&gt; <br>&gt; Jeff Harrison<br>&gt; <a href="mailto:jeffaharrison@yahoo.com">jeffaharrison@yahoo.com</a><br>&gt; Author of JHExport and JHImport<br>&gt; _______________________________________________<br>&gt; Filepro-list mailing list<br>&gt; <a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>&gt; Subscribe/Unsubscribe/Subscription Changes<br>&gt; <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br><br><o:p></o:p></span></p></div></div></div></div></div></body></html>