Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.filemaker > #2517

Re: Script Editing

From Helpful Harry <HelpfulHarry@BusyWorking.com>
Newsgroups comp.databases.filemaker
Subject Re: Script Editing
Date 2015-11-24 13:34 +1300
Organization Aioe.org NNTP Server
Message-ID <241120151334409712%HelpfulHarry@BusyWorking.com> (permalink)
References <1me9h1d.1g9dfyu1t0zetfN%csampson@inetworld.net> <slrnn532ot.5tt.t-usenet@ID-685.user.individual.de> <1meci25.8ifcwu1o9gtkvN%csampson@inetworld.net>

Show all headers | View raw


In article <1meci25.8ifcwu1o9gtkvN%csampson@inetworld.net>, Charles H.
Sampson <csampson@inetworld.net> wrote:
> Martin ?rautmann <t-usenet@gmx.net> wrote:
> > On Sat, 21 Nov 2015 23:55:39 -0800, Charles H. Sampson wrote:
> > >
> > >  Is there some way to cut, copy, and paste in the script editor,
> > >  particularly copying parts of one script into another?
> > > 
> > >  As always, I'm still on FMP 8.
> > 
> > It does not work very well and it does require the advanced edition.
> > 
> > You can import scripts and edit them as needed. Best practise may be to
> > split scripts into modules which you use within other scripts.
> > 
> > FMP is based on manually clicking most of the staff. That's just the way
> > it is... With both its advantages and disadvantages....
> 
> Thanks, Martin. This has been my experience but I was hoping that I was
> wrong.
> 
> The "put it into modules" approach often works, but not when it's a 5-
> 1-line snippet of code that needs to be inserted into several scripts.
> In the case I'm working on, the snippet is a loop containing an
> if-statement, where the if-statement will have code specific to the
> script I want to copy into. The termination condition of the loop also
> depends on the receiving script. The advantage of copy-paste is that it
> reduces the chance of typos, which scripts don't catch at all.

Another sometimes useful option is to create one script (or the main
repeated bit at least), then duplicate it in the script list window and
tweak them.

OR

Possibly use one sub-script and have the main scripts pass it the
individual start / stop requirements in variables or Global fields.



The problem with having them all as separate scripts is of course if
you later find a mistake or need to make a change, then you have to
edit each script individually.

Helpful Harry  :o)

Back to comp.databases.filemaker | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Script Editing csampson@inetworld.net (Charles H. Sampson) - 2015-11-21 23:55 -0800
  Re: Script Editing Martin Τrautmann <t-usenet@gmx.net> - 2015-11-22 09:30 +0000
    Re: Script Editing csampson@inetworld.net (Charles H. Sampson) - 2015-11-23 15:16 -0800
      Re: Script Editing Helpful Harry <HelpfulHarry@BusyWorking.com> - 2015-11-24 13:34 +1300
      Re: Script Editing clkaufmann@gmx.ch (Christoph Kaufmann) - 2015-11-24 09:41 +0100

csiph-web