Advertisement
5_2007-2008 Custom Controls/ Forms/ Menus #182620

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

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 *

AI

ИИ-обзор: 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.

Исходный код
original-source
on keypress event of textbox type code bellow:
KeyAscii = IIf(Not KeyAscii = 8 And Not Val((Chr(KeyAscii))) > 0, 0, KeyAscii)
Оригинальные комментарии (3)
Восстановлено из Wayback Machine