Does anyone know how to return the ASCII character for a numeric value? Example: I provide 65, the application returns "A".
Thank you.
-Mike Kemp
Thanks, Opp.
I suppose, then, you'd have to do a series of If statements like:
Code:
Create procedure ASCIIVals(InStr varchar(1)) returns (RetVal integer) as
begin
if InStr="a" then
RetVal=97;
if InStr="b" then
RetVal=98;
if InStr="c" then
RetVal=99;
etc.
Returns the ASCII value of the character passed in.
DECLARE EXTERNAL FUNCTION ASCII_VAL
CHAR(1)
RETURNS INTEGER BY VALUE
ENTRY_POINT 'IB_UDF_ascii_val' MODULE_NAME 'ib_udf';
Martijn Tonies
Database Workbench - the developer tool for InterBase, Firebird and MS SQL Server
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.