<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond, new york, times, serif;font-size:12pt"><DIV>toHTML doesn't work for '<BR></DIV>
<DIV style="FONT-FAMILY: garamond, new york, times, serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: tahoma, new york, times, serif; FONT-SIZE: 10pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Richard Kreiss &lt;rkreiss@verizon.net&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Jeff Harrison &lt;jeffaharrison@yahoo.com&gt;; Linda Gray &lt;lc_gray@yahoo.com&gt;; filepro-list@lists.celestial.com<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thu, May 26, 2011 1:32:13 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: edits help<BR></FONT><BR><BR><BR>&gt; -----Original Message-----<BR>&gt; From: filepro-list-bounces+rkreiss=<A href="mailto:verizon.net@lists.celestial.com" ymailto="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" ymailto="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" ymailto="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" ymailto="mailto:lc_gray@yahoo.com">lc_gray@yahoo.com</A>&gt;<BR>&gt; &gt; To: Jay Ashworth &lt;<A href="mailto:jra@baylink.com" ymailto="mailto:jra@baylink.com">jra@baylink.com</A>&gt;; <A href="mailto:filepro-list@lists.celestial.com" ymailto="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" ymailto="mailto:jra@baylink.com">jra@baylink.com</A>&gt;<BR>&gt; &gt; To: <A href="mailto:filepro-list@lists.celestial.com" ymailto="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: "Linda Gray" &lt;<A href="mailto:lc_gray@yahoo.com" ymailto="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 "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".&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" ymailto="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; http://baylink.pitas.com&nbsp; &nbsp; &nbsp; &nbsp; 2000 Land Rover<BR>DII<BR>&gt; &gt; St Petersburg FL USA&nbsp; &nbsp; &nbsp; http://photo.imageinc.us&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 "from" 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("39") with "'" that is the "html<BR>&gt; equivalent".<BR>&gt; (not url escape - I assume that is not your goal)<BR>&gt; <BR>&gt; Does filepro have a "replace" 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" ymailto="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" ymailto="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</A><BR>&gt; Subscribe/Unsubscribe/Subscription Changes<BR>&gt; http://mailman.celestial.com/mailman/listinfo/filepro-list<BR><BR><BR></DIV></DIV></div></body></html>