Brian Dunning's FileMaker Custom Functions

GetAs ( type ; value )

Dynamic GetAs function for all data types (text, number, date, time, timestamp)

  Average rating: 5.0 (1 vote) Log in to vote

Ethan   Ethan - Show more from this author
Tactile Medical
https://www.linkedin.com/in/ethyoder

Share on Facebook Share on Twitter

  Sample input:
Input 1: GetAs ( "Date" ; "06/24/2021 01:24:20 PM" )
Input 2: GetAs ( "Number" ; "HGFS83423F34SD9" )
  Sample output:
Output 1: 6/24/2021
Output 2: 83423349

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Takes in a value and the type you want to transform it into. Works with text, numbers, dates, times, and timestamps. Useful for when you need to change a variable into a data type dynamically.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: