Facebook Application

Fairlight fairlite at fairlite.com
Wed Dec 16 13:13:41 PST 2009


Only Bruce Easton would say something like:
> but I don't view what I described (using only :cr :tx and :cl) 
> as using an intermediate layer.  I just view that as just 

Well the whole thing is an intermediate layer.  You have your content, you
have your markup.  Then you've got this little shorthand intermediate layer
to tell fP how to apply markup -to- the content.  It's a further layer of
abstration that probably makes debugging a complete bitch.

> a different way of outputting the file.  Maybe I liked using 
> the html :tx because I could still see more lines on average 
> in the fp editor.  Usually when I'm using writeline, I wind 
> up having an extra line to output what was assigned on the 
> previous line.
> 
> I do plan on writing any new code with just open and writeline, 
> and as I work back thru older code - changing it to that 
> method.  I've already been doing that for a while.

http://www.fairlite.com/fc/products/html2prc/

Write your HTML/JS/whatever in whatever you please.  Convert it with this,
and you get a PRC table that, when CALLed, will output the original.  All
you have to do is make changes to the dynamic parts in fP.

For instance, if I'm doing a table or a select box, I'll only do one row of
the table or one option just as a skeleton, and throw a lookup with a
getnext loop around it, and just quickly edit in the field concatenations.

But you don't have to dink with 99%+ of it if it's just some dynamic parts
inside a lot of static content.  So you edit in whatever...FrontPage
(*gag*), or whatever editor you like for HTML/JS.  Get it down to where you
like the way it looks in the browser, and then just convert it and tweak it
so it can be CALLed and do the job it needs to.  (Sometimes this involves
declaring some extern variables if you want to pass some in...but for real
or dummy fields it wouldn't require any extra declarations.)

Problem solved.  :)

Essentially, the program creates the PRC table, which simply splits up long
lines into *cabe-editable chunks, and outputs each line or line segment
using...you guessed it...writeline().  That or write(), I can't remember
without looking.  Same concept--I've never had it add whitespace in the
middle of a split, in any event, so it's solid.

mark->
-- 
Audio panton, cogito singularis,


More information about the Filepro-list mailing list