Solved

checking a string for a number

Posted on 1998-10-28
1
144 Views
Last Modified: 2010-04-30
I would like to check the first character of a string to see if it's a number from 0-9.
I am using VB4-16 bit.
With code, how can I accomplish this?
0
Comment
Question by:dtucker
1 Comment
 
LVL 1

Accepted Solution

by:
ajmendes earned 10 total points
ID: 1442147
Hi,
try this code:

IsNumeric(Left(str,1))

Bye
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb6 programatically bring window to front 8 74
VB error "Type mismatch" 2 59
Visual Basic Excel Formatting error 4 127
how to know if my Checkbox is True in VB6.0? 9 60
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question