>>267
1 Text1.Textに "ABC" と入っている
2 Text1.Textに "123" と入っている
3 Text1.Textに "123 " と入っている
4 Text1.Textに "-12.34" と入っている

text1.text=trim(text1.text)
if text1.text like "*[!0123456789]*" then exit sub
上二行を頭にいれてください。