Number-Only Textbox


Change the style of a Liberty BASIC textbox so that it accepts only numeric input. The characters 0 - 9 are the only acceptable input. Decimal dots, commas, alpha characters and other punctuation marks cannot be used.

nomainwin

stylebits #main.txt, _ES_NUMBER, 0, 0, 0
textbox #main.txt, 10, 10, 100, 30
open "Number Box" for window as #main
#main "trapclose [quit]"
wait

[quit] close #main : end


Home

Source Code

Utilities

Internet

Games

Graphics

Media Demos

Snippets

DLL's

API Resources

Freeware

LB 4 Companion

Mastering LB 3

LB Workshop

Game Workshop

Links

Index