Advertisement
2_2002-2004 Complete Applications #114384

Easiest way to tell if text is a number

Shows you how to check if text is a numeric *Easiest way*

AI

Resumo por IA: 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.

Código fonte
original-source
<i>'You need a command button (Command1)<br>
'Also a textbox (Text1)</i><br><br>
Private Sub Command1_Click() 
 If IsNumeric(Text1.Text) Then <br>
 MsgBox "Thankyou for entering a number" <br>
 Else: MsgBox "Please enter a number" <br>
End If 
End Sub <br>
Comentários originais (3)
Recuperado do Wayback Machine