I started out putting all of my new scripts at the bottom of the file.  This
is what the JFW Scripting Manual recommends in an early chapter.  But then,
when I got to the sixth homework exercise in that manual, I found that I
couldn't get the function I was writing to compile successfully.  As I
learned, two chapters later in the manual, functions which are being called
should appear *before* the function or script that is calling them.  If the
called function comes later in the file than the calling script, you may get
compiler errors.  The one I got complained that I had defined a variable as
INTEGER, even though I had defined it as STRING.
    To summarize:   (1) putting scripts at the end of a file makes a lot of
sense, unless they are being called by something else.  In that case, they
should be ahead of the calling function.  (2) Beware of this, when doing the
homework in the JFW manual, if you get complaints as to variables being
defined as INTEGER when you didn't define any as such.

Dave Simpson
-----Original Message-----
From: Dennis Brown <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, March 06, 1999 1:29 PM
Subject: Re: Merging Scripts


>The only means I found was to keep my added scripts at the bottom of the
>default.jss file, and a remark line just above any of the default scripts
>that I've altered in any way.  When making the update move, I search for
the
>line that states:
>;****My scripts start here****
>And cut and paste anything below that line to the new default.jss file.
>I then search for all the default scripts in the default.jss file that has
a
>comment line above it that states:
>;***I altered this script ****
>I then make the same alterations to the new default.jss file, compile, and
>then start working on any differences that cause compile-time errors.
>Tedious, but less headaches!
>Just a suggestion!
>
>Thanks,
>Dennis Brown
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>
>
>-----Original Message-----
>From: David Simpson <[EMAIL PROTECTED]>
>To: JFW Listserv <[EMAIL PROTECTED]>
>Date: Saturday, March 06, 1999 11:10 AM
>Subject: Merging Scripts
>
>
>>I have just downloaded the JFW 3.02.31 patch and the modified JFW default
>>scripts (default.jss from 9/98), and I have made a backup of my existing
>>scripts.  Do I just copy the new version into
>>\jfw32\settings\enu\default.jss?  Is there a fairly painless way to add in
>>any of my own scripts which I had added to the earlier version of
>>default.jss?
>>
>>    Thanks, in advance.
>>
>>
>>Dave Simpson
>>
>>-
>>Visit the jfw ml web page: http://jfw.cjb.net
>
>-
>Visit the jfw ml web page: http://jfw.cjb.net
>

-
Visit the jfw ml web page: http://jfw.cjb.net

Reply via email to