mfrapp Posted March 25, 2008 Posted March 25, 2008 Hi, Rigth now when i pass a argument to a script from my understanding, the argument is passed as a value copy. Is there a a way to pass a field as reference? so i could modify the field's content in the script. somebody told me no so i wanted to check here first, but he suggested i name those fields with the same ObjectName and i could do it like that. any input or idea about that? Thanks
Lee Smith Posted March 25, 2008 Posted March 25, 2008 I think you are mixing up a few things. Take a look at Naming Field Objects, Set Variable Script Step, and Global Fields. Without knowing what it is you are trying to accomplish, we can't get too detailed in our responses. Why not tell us what you are wanting to have as a result. Lee
mfrapp Posted March 25, 2008 Author Posted March 25, 2008 I have script wich sets a title on a layout, my problem is that i want to use the same script for many layouts wich are based on many tables. so lets say i have those 3 fields/layouts/tables Form::Form_title Project::Prj_title Facturation::Fact_title I want 1 script to be able to modify the content of the title field, by passing the field as arguments to the script. is it possible?
David Jondreau Posted March 25, 2008 Posted March 25, 2008 Your question is confusing because of the way you're using the terminology of FileMaker. You can't pass a "field" but you can pass the contents of a field (represented by the field's name) or the name of a field (represented by the field's name in quotes). I think you want to pass the contents of one of three fields to your script. You do that by setting the script parameter to the field name, then use the function Get(ScriptParameter) to use that value in the Set Window Title[] script step.
mfrapp Posted March 25, 2008 Author Posted March 25, 2008 Thanks DJ, you answered my question "You can't pass a "field" but you can pass the contents of a field". sorry if i dont explain my self rigth. mfrapp
Recommended Posts
This topic is 6085 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