SRL Archive - C#/Visual Basic Help and Tutorials

Asking if something is an integer


jhildy

2007-08-24 22:47:33

im making a program that write things to a file but i want the edit box to only accept numbers how can i do this?

also how can i convert strings and integers to each other.

Sumilion

2007-08-25 05:05:04

I wouldnt know an easy way of your first problem, but your second one :

IntToStr();
StrToInt();
StrToIntDef(); (Default)

jhildy

2007-08-25 12:08:40

really??

edit: nah sum this is vb forum not normal scar.

supershort3

2008-01-05 00:37:58

if IsNumeric(Text1) Then 
//Code Here
End If