O'Reilly logo

FileMaker® 8 Functions and Scripts Desk Reference by Bob Bowers, Steve Lane, Scott Love

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Examples:

Image

GetAsNumber()

Category: Text

Syntax: GetAsNumber ( text )

Parameters:

text—Any valid text expression that contains numbers.

Data type returned: Number

Description:

GetAsNumber() returns only the numbers from a text string, as a data type number. All non-numeric characters are dropped from the string.

Use GetAsNumber() to strip all non-numeric characters out of a text string. For instance, you might have a phone number field to which you want to apply some formatting. GetAsNumber (PhoneNumber) returns just the numeric characters from the field, stripping all punctuation and spaces, so that you can then apply whatever new formatting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required