×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Pervasive IsNumeric ?

Pervasive IsNumeric ?

Pervasive IsNumeric ?

(OP)
SELECT * FROM sales WHERE IsNumeric(left(ID,1))

will this work ?

RE: Pervasive IsNumeric ?

What version of Pervasive are you using?  I've got 8.6 with an FTF and the following statement works for me using Demodata:
SELECT * FROM class WHERE IsNumeric(left(section,1)) = 1

IsNumeric seems to return 1 for true and 0 for false.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
Custom VB and Btrieve development.
http://www.mirtheil.com

RE: Pervasive IsNumeric ?

(OP)
Soory I tried :

SELECT * FROM "ICITEM" WHERE IsNumeric(left(ITEMNO,1)) = 1

got this back :

ODBC Error: SQLSTATE = 37000, Native error code = 0
Invalid scalar function: IsNumeric.

using 8.00.114.000

I found this ....?
Appendix 8--ISO Utility and Information Modules

A8.1 Characters and Strings
DEFINITION MODULE CharClass;

  (* Classification of values of the type CHAR *)

PROCEDURE IsNumeric (ch: CHAR): BOOLEAN;
  (* Returns TRUE if and only if ch is classified as a numeric character *)


RE: Pervasive IsNumeric ?

What version of Pervasive.SQL are you using?  Might be time to open a support incident.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
Custom VB and Btrieve development.
http://www.mirtheil.com

RE: Pervasive IsNumeric ?

(OP)
using 8.00.114.000

RE: Pervasive IsNumeric ?

That's the original release of 8.0.  You might want to try 8.6 first and if that doesn't work, then call Pervasive.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
Custom VB and Btrieve development.
http://www.mirtheil.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close