numeric testing in vb 6.0

numeric testing in vb 6.0

Page 1 of 1

1 Replies - 4344 Views - Last Post: 30 November 2008 - 12:25 PM Rate Topic: -----

#1 ebvukurusi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 30-November 08

numeric testing in vb 6.0

Post icon  Posted 30 November 2008 - 06:25 AM

How do I test whether a strign contains only numeric characters?
is the anything like IS NUMERIC or something in vb
Is This A Good Question/Topic? 0
  • +

Replies To: numeric testing in vb 6.0

#2 VB Crash  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 130
  • Joined: 28-November 08

Re: numeric testing in vb 6.0

Posted 30 November 2008 - 12:25 PM

This is the basic code. Modify it, or make array and store the position and the numbers of the numerical characters


Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)

If IsNumeric(Chr(KeyCode)) Then MsgBox "The cahracter is numeric!!!",vbInformation

End Sub




Vace

This post has been edited by VB Crash: 30 November 2008 - 12:25 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1