Hi Chuck,

So....for clarification, whatever is passed them, CFs will accept as what they are: dates, text, numbers, time, etc. There is no need to use GetAsDate() or GetAsNumber().....RIGHT?

Yes, CFs will receive data as they are (provided data go from fields, or from variables that got their data from fields, or from expressions that return data in known format).

BTW, as far as I know all FileMaker data keep a tag that describes their type. In most cases they also automatically convert into one another depending on the context (e.g. A + B will convert values to numbers, while A & B will convert them to texts), but sometimes you'll need to guide these convertors with GetAs() functions.

You can even pass a repeating field and access its repetitions within the function; i.e. if you have a function My Function( my param ), and pass it a repeating field as the parameter, then

  GetRepetition( my param, 2 )

will return the second repetition of the field.

Kind regards,
--
Mikhail Edoshin
[email protected]



On Feb 18, 2009, at 1:23 AM, Chuck Pelto wrote:

Hi Steve,

On Feb 17, 2009, at 2:47 PM, Steve B. Gerow wrote:

CF params can be anything except container data.

So....for clarification, whatever is passed them, CFs will accept as what they are: dates, text, numbers, time, etc. There is no need to use GetAsDate() or GetAsNumber().....RIGHT?

Regards,

Chuck




--
Steve Gerow
FileMaker 9/8/7 Certified Developer

President
Abrazos Data Consulting, Inc.
Pasadena, California
626.398.1506
Member FileMaker Bus. Alliance


-------Original Message-------
From: Chuck Pelto <[email protected]>
Subject: Custom Function Params
Sent: Feb 17 '09 13:31

Out of curiosity....

....what form do params passed to a Custom Function take?

Are their formats recognized automatically by the Custom Function to
be dates, numbers, text, etc., etc., etc?

Or are they all recognized as 'text'?

Regards,

Chuck


Reply via email to