Custom Function Parameters: Value or Reference?

Custom Function Parameters: Value or Reference?

Wim Decorte  11/4/13

I have always assumed that parameters for custom functions are passed strictly “by value”: if you point to a field, then that field’s value is what the custom function receives. Look at the example below.  The custom function is very simple and just returns the value of the parameter.  I am calling the custom function and pointing it to a field for the parameter.  Works exactly like you’d expect it to, doesn’t it?  The custom function just returns the parameter that we passed in. 

Now let’s change the custom function to return two lines:

– the value of the parameter, and
– a getfieldname( ) function call on the parameter

 

 

More…Custom Function Parameters: Value or Reference?.

Liked Liked
Need FileMaker Development Help? Or to purchase FileMaker Software?
Contact FM Pro Gurus for help