dbTalk Databases Forums  

What is maximum depth of script calls

comp.databases.filemaker comp.databases.filemaker


Discuss What is maximum depth of script calls in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nicholas Geti
 
Posts: n/a

Default What is maximum depth of script calls - 05-24-2010 , 04:44 PM






I am trying to build some small scripts that can be reused (modular
programming) but it isn't working; the logic never arrives at the lowest
level.

The structure is to create smaller scripts in the same table so I can debug
them then call them from a main script in that same table. This works fine.
But if the smaller script now calls a script in another table, the logic
never arrives there. I put in Show Message() to prove that. If I perform
those subscripts individually from the edit window they also work fine. It
is only when I start at the main level that things fall apart.

I am still in Filemaker Pro v 2.2 on a Windows XP Pro PC.

Reply With Quote
  #2  
Old   
KevinSmith
 
Posts: n/a

Default Re: What is maximum depth of script calls - 05-25-2010 , 05:20 AM






On May 24, 10:44*pm, "Nicholas Geti" <ng... (AT) optonline (DOT) net> wrote:

Quote:
But if the smaller script now calls a script in another table, the logic
never arrives there.
<snip>
Quote:
I am still in Filemaker Pro v 2.2 on a Windows XP Pro PC.
Hi Nicholas
First I tried to emulate the problem on my copy of FileMaker 11. I
certainly remember having the same problem myself and spending ages
wondering why scripts were not performing as expected. Then I came
back to your post and saw you were running an older version of
FileMaker. I fired up FileMaker 5 and saw what I was looking for. In
scriptmaker there is a dialogue box where you can edit the lines of
script. Right at the bottom of this dialogue box (above the
'duplicate' button on my version) there's a checkbox/tickbox with the
label "perform sub-scripts". Go through all the scripts in your file/s
and make sure this box is ticked.

This characteristic (I would NOT call it a feature) is no longer
available in FM 11.

Regards
Kevin Smith

Reply With Quote
  #3  
Old   
Your Name
 
Posts: n/a

Default Re: What is maximum depth of script calls - 05-25-2010 , 04:22 PM



"KevinSmith" <pleasedonotusethisaddress (AT) gmail (DOT) com> wrote

Quote:
I fired up FileMaker 5 and saw what I was looking for. In
scriptmaker there is a dialogue box where you can edit the lines of
script. Right at the bottom of this dialogue box (above the
'duplicate' button on my version) there's a checkbox/tickbox with the
label "perform sub-scripts". Go through all the scripts in your file/s
and make sure this box is ticked.
I haven't got FileMaker on this computer to check, but I think you'll find
that option is part of the Perform Script command rather than Scriptmaker
itself.

I don't know if it was available in FileMaker 2 ... even I don't have a
version that old.

There will be a limit in all versions of FileMaker Pro as to how many times
you can recursively call a Script or custom function, but it is likely to be
fairly high (although may depend on the amount of RAM available).

Helpfull Harry )

Reply With Quote
  #4  
Old   
Nicholas Geti
 
Posts: n/a

Default Re: What is maximum depth of script calls - 05-25-2010 , 09:32 PM



My mistake. I am running v5.5. Slip of the finger.


"Your Name" <your.name (AT) isp (DOT) com> wrote

Quote:
"KevinSmith" <pleasedonotusethisaddress (AT) gmail (DOT) com> wrote in message
news:ded45191-2eda-4657-810f-76c3a6f98650 (AT) b21g2000vbh (DOT) googlegroups.com...

I fired up FileMaker 5 and saw what I was looking for. In
scriptmaker there is a dialogue box where you can edit the lines of
script. Right at the bottom of this dialogue box (above the
'duplicate' button on my version) there's a checkbox/tickbox with the
label "perform sub-scripts". Go through all the scripts in your file/s
and make sure this box is ticked.

I haven't got FileMaker on this computer to check, but I think you'll find
that option is part of the Perform Script command rather than Scriptmaker
itself.

I don't know if it was available in FileMaker 2 ... even I don't have a
version that old.

There will be a limit in all versions of FileMaker Pro as to how many
times
you can recursively call a Script or custom function, but it is likely to
be
fairly high (although may depend on the amount of RAM available).

Helpfull Harry )




Reply With Quote
  #5  
Old   
Nicholas Geti
 
Posts: n/a

Default Re: What is maximum depth of script calls - 05-25-2010 , 09:39 PM



I made a typo. My version is 5.5. I did not find the check box for "perform
sub-scripts" on my menu. So I guess there is no answer to my problem. The
only button is "Perform" which executes the current script.

"KevinSmith" <pleasedonotusethisaddress (AT) gmail (DOT) com> wrote

On May 24, 10:44 pm, "Nicholas Geti" <ng... (AT) optonline (DOT) net> wrote:

Quote:
But if the smaller script now calls a script in another table, the logic
never arrives there.
<snip>
Quote:
I am still in Filemaker Pro v 2.2 on a Windows XP Pro PC.
Hi Nicholas
First I tried to emulate the problem on my copy of FileMaker 11. I
certainly remember having the same problem myself and spending ages
wondering why scripts were not performing as expected. Then I came
back to your post and saw you were running an older version of
FileMaker. I fired up FileMaker 5 and saw what I was looking for. In
scriptmaker there is a dialogue box where you can edit the lines of
script. Right at the bottom of this dialogue box (above the
'duplicate' button on my version) there's a checkbox/tickbox with the
label "perform sub-scripts". Go through all the scripts in your file/s
and make sure this box is ticked.

This characteristic (I would NOT call it a feature) is no longer
available in FM 11.

Regards
Kevin Smith

Reply With Quote
  #6  
Old   
Your Name
 
Posts: n/a

Default Re: What is maximum depth of script calls - 05-26-2010 , 01:23 AM



"Nicholas Geti" <ngeti (AT) optonline (DOT) net> wrote

Quote:
I made a typo. My version is 5.5. I did not find the check box for
"perform
sub-scripts" on my menu. So I guess there is no answer to my problem. The
only button is "Perform" which executes the current script.
The Perform Sub-scripts option is a checkbox in the Scriptmaker window when
editing a Perform Script command. It may also be part of the Perform Script
button definition command.


One way to find out how many recursive Script calls you can make would be to
create a simple database with one Field,

NumberField Number

and a Script called RecursiveScript that simply says:

Set Field [NumberField, NumberField + 1]
Perform Script [RecursiveScript, Sub-scripts]

Performs that, and then assuming FileMaker doesn't crash you should get a
result in NumberField telling you how many times the Script was run ... or
an error message.


Helpfull Harry )

Reply With Quote
  #7  
Old   
KevinSmith
 
Posts: n/a

Default Re: What is maximum depth of script calls - 05-28-2010 , 04:35 AM



On May 26, 3:39*am, "Nicholas Geti" <ng... (AT) optonline (DOT) net> wrote:
Quote:
I made a typo. My version is 5.5. I did not find the check box for "perform
sub-scripts" on my menu. So I guess there is no answer to my problem.
Hi Nicholas

I did a screen shot to help you.
http://yfrog.com/afperformsubscriptj

It's from FileMaker 5.5v1 Dev. You need to click on the "Perform
Script" step to see the tickbox.

I've done another check in FM 10 and FM11, this function is no longer
there.

Regards Kevin Smith

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.