I also always thought that the functions were overloaded; you feed them text and they return data type based either on context, or, in the case of field references, the fields' data type.
Mikhail, do you think there are similar tags for script variables? John Weinshel Datagrace Vashon Island, WA (206) 463-1634 Member, FileMaker Business Alliance Certified For FileMaker 8 Certified For FileMaker 7 _____ From: FileMaker Pro Discussions [mailto:[email protected]] On Behalf Of Rob Russell Sent: Tuesday, February 17, 2009 5:51 PM To: [email protected] Subject: Re: Custom Function Params On Wed, Feb 18, 2009 at 12:19 PM, Mikhail Edoshin <[email protected]> wrote: BTW, as far as I know all FileMaker data keep a tag that describes their type. Mikhail, Why do you think that? I've never seen evidence of it. 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. As far as I know, the parameters are ALWAYS text, until you use them, at which point FileMaker makes a decision about type. However, this is often problematic if your parameter(s) is (are) date(s) - (dates and FileMaker, always a barrel of fun) and you try to perform some function on them such as date addition without co-ercing the type. Rob
