Michelle Logan Posted June 28, 2012 Posted June 28, 2012 OOPS, have just realized I posted this in the wrong area. I was reading a calculation post and forgot where I was. Is there a limit on how many Eles If statments a script can have (I dont think a Case Statement will work for our project). If I have counted correctly we will have about 20 Else If statments. If 20 is not a problem, then just for a reference, is there a limit? We run a Filemaker Server 11 and Filemaker 11 Pro on our workstations (not sure if there was a limit based on version). Michelle
comment Posted June 28, 2012 Posted June 28, 2012 I am not aware of any such limit. If there were one, it would be more likely of how many steps can you have in a script - regardless of what those steps are. However, no such limit is listed in the tech spec.
Michelle Logan Posted June 28, 2012 Author Posted June 28, 2012 Thank you for the reply. That would make sense as to the number of script steps rather than a specific script step. ML
Fitch Posted June 28, 2012 Posted June 28, 2012 When a script has that many Else If statements, I start to wonder if it would be easier to maintain as a group of smaller scripts rather than one giant script. Depends on its purpose, of course. See: http://en.wikipedia.org/wiki/God_object
Michelle Logan Posted June 28, 2012 Author Posted June 28, 2012 Wow, I never even thought of that. I think that may be a cleaner solution for our schools database.
Fitch Posted June 29, 2012 Posted June 29, 2012 It's arguably a matter of programming style, but I gravitate toward the style of manageable chunks of code, also called "what happens if I get hit by a bus?"
Recommended Posts
This topic is 4588 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now