<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 <rkreiss@verizon.net><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Jeff Harrison <jeffaharrison@yahoo.com>; Linda Gray <lc_gray@yahoo.com>; 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>> -----Original Message-----<BR>> 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>> [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>> Behalf Of Jeff Harrison<BR>> Sent: Thursday, May 26, 2011 2:27 PM<BR>> 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>> Subject: Re: edits help<BR>> <BR>> ----- Original Message ----<BR>> <BR>> > From: Linda Gray <<A href="mailto:lc_gray@yahoo.com" ymailto="mailto:lc_gray@yahoo.com">lc_gray@yahoo.com</A>><BR>> > To: Jay Ashworth <<A href="mailto:jra@baylink.com" ymailto="mailto:jra@baylink.com">jra@baylink.com</A>>; <A href="mailto:filepro-list@lists.celestial.com" ymailto="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</A><BR>> > Sent: Thu, May 26, 2011 1:13:21 PM<BR>> > Subject: Re: edits help<BR>> ><BR>> > i'm not worried about the length of the end string. i need to replace<BR>the '<BR>> > with an html friendly string like the toHTML command does, except it<BR>> >doesn't do<BR>> ><BR>> > the single quote. it
was suggested that i do it with an edit.<BR>> ><BR>> ><BR>> ><BR>> ><BR>> > ________________________________<BR>> > From: Jay Ashworth <<A href="mailto:jra@baylink.com" ymailto="mailto:jra@baylink.com">jra@baylink.com</A>><BR>> > To: <A href="mailto:filepro-list@lists.celestial.com" ymailto="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</A><BR>> > Sent: Thu, May 26, 2011 11:12:32 AM<BR>> > Subject: Re: edits help<BR>> ><BR>> > ----- Original Message -----<BR>> > > From: "Linda Gray" <<A href="mailto:lc_gray@yahoo.com" ymailto="mailto:lc_gray@yahoo.com">lc_gray@yahoo.com</A>><BR>> ><BR>> > > I need to convert the ' to ' or %27 using an edit.<BR>> > ><BR>> > > I'm not good at defining edits and sure would appreciate some help.<BR>> > ><BR>> > > I need
to replace the ' with it's HTML equivalent before writing<BR>> > > out ajax script that uses ' for strings and have names with ' in<BR>them.<BR>> ><BR>> > So you need to URLescape an ASCII string; that's your end goal?<BR>> ><BR>> > My snap reaction is "you don't want to do that with an edit, because<BR>> > you can't guarantee how many characters you'll have to replace, and<BR>> > you'll run out of space". You *probably* want to write code to do<BR>> > that, as difficult as it is to handle functions in filePro.<BR>> ><BR>> > Cheers,<BR>> > -- jra<BR>> > --<BR>> > Jay R. Ashworth Baylink<BR><A href="mailto:jra@baylink.com" ymailto="mailto:jra@baylink.com">jra@baylink.com</A><BR>> > Designer
The Things I Think RFC<BR>2100<BR>> > Ashworth & Associates http://baylink.pitas.com 2000 Land Rover<BR>DII<BR>> > St Petersburg FL USA http://photo.imageinc.us +1 727<BR>647<BR>> 1274<BR>> <BR>> <BR>> I would suggest that you NOT use an edit for this as well. I don't think<BR>edits<BR>> work very well when you don't know how many of the "from" characters<BR>> may appear in the string.<BR>> <BR>> I would suggest doing this in processing - I think what you want to do is<BR>> replace every occurance of chr("39") with "'" that is the "html<BR>> equivalent".<BR>> (not url escape - I assume that is not your goal)<BR>> <BR>> Does filepro have a "replace" function? I don't see one in 5.0 anyway.<BR>Xlate<BR>> seems to
work on a character by character basis, so I don't think you can<BR>use<BR>> that. I think you will need to write this using mid and instr.<BR><BR>SEE TOHTML()<BR><BR>Richard<BR><BR>> <BR>> I suppose Ken will now show us how to do this with an edit. :-)<BR>> <BR>> Jeff Harrison<BR>> <A href="mailto:jeffaharrison@yahoo.com" ymailto="mailto:jeffaharrison@yahoo.com">jeffaharrison@yahoo.com</A><BR>> Author of JHExport and JHImport<BR>> _______________________________________________<BR>> Filepro-list mailing list<BR>> <A href="mailto:Filepro-list@lists.celestial.com" ymailto="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</A><BR>> Subscribe/Unsubscribe/Subscription Changes<BR>> http://mailman.celestial.com/mailman/listinfo/filepro-list<BR><BR><BR></DIV></DIV></div></body></html>