edits help

Richard Kreiss rkreiss at gccconsulting.net
Thu May 26 11:19:56 PDT 2011


Linda,

Try TOHTML

4.8      TOHTML()   Converts special HTML characters.

         Syntax
               xx = TOHTML(yy)

         TOHTML() converts special HTML characters '<', '>', '"', and '&' to
         their HTML equivalents: &lt; &gt; &quot; &amp. This permits you to
         include these characters within the text of an HTML document.

         Example: You want to display e-mail addresses. If you had:

             Then: yy="W Rand <wrand at fptech.com <mailto:wrand at fptech.com>>"

             Then: HTML :TX TOHTML(yy)


Richard Kreiss
GCC Consulting
rkreiss at gccconsulting.net
  





> -----Original Message-----
> From: filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com
> [mailto:filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com] On
> Behalf Of Linda Gray
> Sent: Thursday, May 26, 2011 1:13 PM
> To: Jay Ashworth; filepro-list at lists.celestial.com
> Subject: Re: edits help
> 
> i'm not worried about the length of the end string.  i need to replace the
'
> with an html friendly string like the toHTML command does, except it
doesn't
> do the single quote.  it was suggested that i do it with an edit.
> 
> 
> 
> 
> ________________________________
> From: Jay Ashworth <jra at baylink.com>
> To: filepro-list at lists.celestial.com
> Sent: Thu, May 26, 2011 11:12:32 AM
> Subject: Re: edits help
> 
> ----- Original Message -----
> > From: "Linda Gray" <lc_gray at yahoo.com>
> 
> > I need to convert the ' to ' or %27 using an edit.
> >
> > I'm not good at defining edits and sure would appreciate some help.
> >
> > I need to replace the ' with it's HTML equivalent before writing out
> > ajax script that uses ' for strings and have names with ' in them.
> 
> So you need to URLescape an ASCII string; that's your end goal?
> 
> My snap reaction is "you don't want to do that with an edit, because you
> can't guarantee how many characters you'll have to replace, and you'll run
> out of space".  You *probably* want to write code to do that, as difficult
> as it is to handle functions in filePro.
> 
> Cheers,
> -- jra
> --
> Jay R. Ashworth                  Baylink                     
jra at baylink.com
> Designer                    The Things I Think                      RFC
2100
> Ashworth & Associates    http://baylink.pitas.com        2000 Land Rover
DII
> St Petersburg FL USA      http://photo.imageinc.us            +1 727 647
1274
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mailman.celestial.com/pipermail/filepro-
> list/attachments/20110526/26f4847e/attachment.html
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list