Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script making in filemaker.

Status
Not open for further replies.

diezy

Technical User
Sep 2, 2002
50
0
0
CA
hey,

heres my problem:

Im new to filemaker, and im trying to program a script that adds certian fields depending on certian data a user selects.

im trying to make an script with an if statement but its seems like i am very limited to how i can create my if statement

i can only create "if(jobType = "production")"
however i can't create the next part the "then costOfJob = 45.00"

it seems i can only create the "if" part of my statement and thats it. and if i want to do the "then" part of my if statement i have to create another script?

could someone please show me how to create a proper if statement



 
Your IF statement needs to be like this

If(jobType = "production")
Set Field("costOfJob","45.00")
End If


The Then part is on the line(s) between the If and the End If steps.

Hope that helps
John
 
see that is the problem

i can't just type "Set Field("costOfJob","45.00"]" in between the if and the end if

sciptmaker won't let me

im using filemake pro 6
 
You have to drag the Set Field script step from the left hand window into the main (Right Large) window. This will add the Set Field Step, then click on options in the lower right hand corner, and add the field and the result.
 
ahhh yes, there we go.

i now got it to work, thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top