March 25, 200817 yr 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
March 25, 200817 yr 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
March 25, 200817 yr Author 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?
March 25, 200817 yr 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.
March 25, 200817 yr Author 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
Create an account or sign in to comment