View Full Version : Share your VB knowledge!!!
Tee_Z28
Sep 20, 2003, 02:26 AM
Hey... pano ko gagawin na yung text box ko will only accept numeric input?
tapos yung sa inputbox ko ganto lalabas: "Enter scor for quiz #"
tapos yung # mag babago kada enter mo depende sa kung ano yung numeric input mo?
thanks for any help
MC21
Sep 20, 2003, 02:48 AM
ascii codes lang yan :)
lagay mo yung sa loob ng text box
Tee_Z28
Sep 21, 2003, 05:01 PM
pano po?
Tee_Z28
Sep 21, 2003, 06:11 PM
ganto na lang yung di kelangan ng array na pagkuha ng average ng quiz scores?
t333n_idol
Sep 21, 2003, 07:17 PM
DLRT ka ba? sabi na nga ba't over-hyped lang comsci nila e
tigra_ice
Sep 22, 2003, 01:28 AM
tingin ko mahirap sa inputbox yan. siguro mas ok kung label na lang yang "Enter score for..." tapos mag provide ka ng textbox to enter the score and then encode this statements in keypress event.
if (KeyAscii < 48 or KeyAscii > 57) and KeyAscii <> 8 then
KeyAscii = 0
end if
hope that helps...
I may be wrong, I frequently am. Let's study the facts. Let's correct the mistakes.
Tee_Z28
Sep 22, 2003, 05:09 PM
DLRT? DLSU-CSB ako what's LRT?
tigra_rice thanks i'll try that...
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.