Advertisement
2_2002-2004 Coding Standards #118987

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

first, my apologies for my bad english. hehe. i updated my code to accept only numbers in a textbox. removed the bug of the another code. sorry by the another. hehe. but this code work

AI

AI Samenvatting: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Broncode
original-source
type code bellow into a keypress event of a textbox control
KeyAscii = IIf(Not KeyAscii = 8 And Not IsNumeric(Chr(KeyAscii)), 0, KeyAscii)
Originele reacties (3)
Hersteld van de Wayback Machine