Brian Dunning's FileMaker Custom Functions

Asc ( char )

Returns the Ascii code for the given character

  Average rating: 3.8 (41 votes) Log in to vote

Theo Ros   Theo Ros
n/a
n/a

Share on Facebook Share on Twitter

  Sample input:
Asc ( "A" )
  Sample output:
65

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

Returns the ascii value for the first character
given in textparameter 'char'

Syntax: Asc ( text )
Returns the ascii value 0-255

Return type: Number

Note: I uploaded this because the function ASCII_Code ( char ) by Tony Tanevski is wrong.

 

Comments

Gjermund Gusland Thorsen   Gjermund Gusland Thorsen, HELGEROA
Feb 18, 2009
Is this function platformindependant?
 
Will Bullard   Will Bullard, Little Rock
Oct 7, 2009
The function has an error. It should read
char = Left (text;1)
 

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.

Under construction. Email me your wish list for improvements.