Getting a web page from filePro
Brian K. White
brian at aljex.com
Sun Jan 30 16:35:43 PST 2005
----- Original Message -----
From: "Jay R. Ashworth" <jra at baylink.com>
To: "Filepro 2 List" <filepro-list at lists.celestial.com>
Sent: Sunday, January 30, 2005 4:27 PM
Subject: Re: Getting a web page from filePro
> On Sat, Jan 29, 2005 at 04:13:53PM -0500, Bob Stockler wrote:
>> | 21 Then: CLS("17","1")
>> | 22 Then: END
>> | get_trk If:
>> | 23 Then: input popup(17,"-1") tracknum "Enter Tracking #\nor Press
>> \kZ-to
>> | continue\n\kY- \b4 Cancel \a-\nEnter Option -> "
>> | If: @sk = "BRKY"
>> | 24 Then: END
>> | If: tracknum ne "" and tracking_num = ""
>> | 25 Then: tracking_num = tracknum;write
>> | 26 Then: RETURN
>>
>> That looks suspiciously like output from a filePro program I wrote.
>> I wish everyone would use it (or whatever you did use) to post code
>> here - it makes it very easy to read and follow and doesn't waste space.
>
> It's similar to one I wrote once, in awk, I think. The only thing I
> did differently was to completely banish "Then" on lines with no if; my
> code looked like:
>
> 21 CLS("17","1")
> 22 END
> 23 get_trk input popup(17,"-1") tracknum "Enter Tracking #\nor Press
> \kZ-to
> continue\n\kY- \b4 Cancel \a-\nEnter Option -> "
> 24 IF @sk = "BRKY" THEN END
> 25 IF tracknum ne "" and tracking_num = "" THEN tracking_num =
> tracknum;write
> 26 RETURN
>
> which, of course, looks even less like traditional filePro code, but I,
> like some others, consider that a feature. I called the script jcabe,
> which, based on what I've seen some other people do, seems to be
> traditional.
It's been a goal of mine since I first saw the format of prc files and the
rcabe interface, to concoct a vim or emacs syntax definition file that would
allow you to edit in larger than 80x25 screens, and used color delineate the
label/if/then sections and do away with the incredibly space wasting
seperator lines. The label and if protions would go on one line and the then
would go on a 2nd and it would look something like greenbar paper. And then
while we're at it toss in the usual syntax highlighting & colorizing. (the
latest vim is available on windows as well as all unii including sco)
No other existing syntax definition files do anything like what this would
require, but as far as I can tell from looking at the available commands I
beleive it should be possible. I tried a few times and failed to figure out
how to use the *&^*&^ wierd syntax file syntax, posted the desired specs to
a vim newsgroup and got some help that went a good 75% of the way or more to
success.
Someday maybe...
Some screen shots and the filepro.vim and a readme from the attempt are at
http://www.aljex.com/fp/vim/
It looks almost like I envisioned, but the interactive funtionality is still
buggy. The *choice* of colors was still pretty sucky, I was still mainly
focusing on functionality, choosing new better colors is trivial.
Since it's vim, you have lots of standard editor goodies rcabe doesn't
offer, and most of what rcabe offers that an editor lacks, can be replaced
with a macro, and in fact, I beleive Bob Stockler has a vi macro that runs
rcabe on a temp file to get syntax check. And you are free to write more and
more macros to add all the magic you want. How about a key that looks for
dummie variables in use, _including_ whatever auto prc is in effect,
_including_ called tables, _including_ long variables, _including_ showing
the difference between ",g" & non-,g , local global & extern for long
variables, _including_ an expanded view that shows line numbers and where
applicable, table names. As hard as that would be to write, how long would
it take to get fp to do it? How much you wanna bet Mark does it for between
free and $100/unlimited-use-copy in a week? ;)
Brian K. White -- brian at aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
More information about the Filepro-list
mailing list