Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7882 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Am I missing something?

Is there a trick to editing scripts?

Why does a script not function after I remove an IF statement

that worked before I put the IF satement in the script?::??

Posted

That is like asking - What is the meaning of life?

There isn't any "Tricks" only fuzzy logic

We are *not* clairvoyant, perhaps some additional information would be helpful, such as what it is you are trying to accomplish.

A sample of the script could be helpful.

A copy of the IF statement could be helpful

Lee

smile.gif

Posted

It is not the script itself, rather the scripting process itself I had questions about.

I am writing a rather long script to automatically enter records for the date (if not Saturday or Sunday) and 16 different tome slots per date for a calendar year.

When I was taught programming theory a prof I had suggested writing programs by writing them from the inside out, a step at a time. Write it and test it. Add to it and test it. If the last step didn't work out, remove or modify it, and start again.

I can't find a book on FM Scriptmaker, so I am writing my script using this programming principle. Learn by doing. Or in this case, get confused by doing. I'm not sure how sophisticated Scriptmaker is.

Is this THEORY (not syntax) legal?

loop

do A

loop

Do B

end loop(if Bcounter=15)

end loop (if Acounter=5)

What about this?

IF (a=:

IF (c=d)

do this

else

do this

end IF

end IF

Is it possible to have both of these pieces of script in the same script?

In the above IF script, if I added the first IF and the last end IF after I wrote and tested the inner IF...ELSE and then removed them, would the script then revert back to the original?

I KNOW this sounds loony. I'm a fairly competent C programmer and I just can't figure out why I am having such a difficult time with this scripting language.

Any suggestions on good books/resources would be appreciated.I have heard about Scriptology, but discovered it is out of print.

Posted

Well, yes you did leave out a few steps. From the vaguness of your posts, I can only say that most like what you want to do is possible. Sometimes things are easier with other approaches such as a calculation of relationship.

smile.gif

In the mean time, there is: Good news, and bad news.

The Good news is, there are books that can help, the most focus on this subject is called "Scriptology: Filemaker Pro Demystified". It was written prior to FM5, but the scipt information still holds true.

The Bad news is, "Scriptology: Filemaker Pro Demystified" is out of print. So, unless you can find someone willing ot share there copy with you, or you get lucky by finding it on Ebay (I just check and nothing is available currently), You could also put your name on the list at Amanzon in case it comes back into print.

Rumor has it that the authors are planning to do an update and release of this very find tool in the near future (unverified by me).

Next to that, use this list for questions, and examine any and all sample files you can get your hands on. A good place to start would be fmfiles.com and this URL

http://www.fmfiles.com/tnt8.html

HTH

Lee

Posted

adding an "if" will add an "end if" too. Removing an "if" does not remove the "end if" (your FMlanguage may vary, FMenglish isn't mine). Add and remove are not inverses - the script might well become wrong.

This topic is 7882 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.