redviper Posted November 9, 2009 Posted November 9, 2009 First let me say that I am using FMDev 6. I need a script step that checks the current found count and then either runs the script or shows a message. I only want the script to run if there is one record in the found count. otherwise I show a message that tells the user to refine their search. I am using an If/else statement in my script, that's easy enough and I tried to use "setfield" to grab the number from a field called "currentfound" but after reading the help on "setfield" that isn't the one to use. Any ideas? remember, I am using FMDev 6. thanks Todd
redviper Posted November 10, 2009 Author Posted November 10, 2009 Maybe it would help is I posted what I have so far: if[] (this is the step i need)(was trying to use setfield("currentfound", "currentfound = "1") Duplicate Record/Request Duplicate Record/Request Duplicate Record/Request Go to Layout [layout] Else Show Message[message] Go to layout[layout] Enter Find Mode[] End if ------------------ The first condition after the "IF" statement is the one I can't figure out. Am I way off base? thanks Todd
redviper Posted November 10, 2009 Author Posted November 10, 2009 well, i'm appreciative that no one let me know the exact kind of ignorant human being I am. the "If[]" statement has brackets for a reason. duh! I just put my condition actually in the "If" section, between the brackets. I swear I've been using filemaker for years and was blanking on that. I'll blame it on my recent surgery, I'm blaming everything else on it. Todd
LaRetta Posted November 10, 2009 Posted November 10, 2009 ROFLMAO!! Hey, Todd, join the club! We all have moments of delayed intelligence and it usually isn't until I post a question that the solution hits me!! :laugh2:
redviper Posted November 10, 2009 Author Posted November 10, 2009 i've done tech work, so, it's karma i believe. I can't tell you the number of times folks will explain a problem only to have it fixed by plugging in something. todd
Recommended Posts
This topic is 5492 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