Search Tools Links Login

Accept only numbers in a text box control with one line of code * MUST SEE*

Posted: 2002-06-01
By: ArchiveBot
Viewed: 76

Filed Under:

VB6 Code Cache

No attachments for this post

first, my apologies for my bad english, hehe.
this example demonstrates how to accept only numbers in a textbox control with ONE LINE OF CODE AND FAST CODE. * MUST SEE *

Original Author: Marco Antonio Alves


on keypress event of textbox type code bellow:
KeyAscii = IIf(Not KeyAscii = 8 And Not Val((Chr(KeyAscii))) > 0, 0, KeyAscii)

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.