Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check data if numeric or not

Status
Not open for further replies.

len105

Programmer
May 20, 2003
3
US
I need to find out if the value in a text field started with a number or a character. How can I check this?

Please help!
 
function startsFromNumber
return boolean
is
testnum integer;
begin
testnum := to_number(substr(<field>, 1));
return true;
exception
when others then
return false;
end;

Regards, Dima
 
thanks a lot for your reply Dima. i've tried it and it worked!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top