PDA

Click to See Complete Forum and Search --> : Testing for Numbers in a text file


james_scrivener
Apr 9th, 2001, 03:49 AM
I have an assignment to input a quadratic equation from a text file.

the file will be set up as follows
1,2,3

however I need to test for letters, spaces , obviously comma's all those are fine but have been unable to stop !,@,#,$.%.^.&.*.(,) coming through as numbers

can anybody point me in the right direction:)

chrisf
Apr 9th, 2001, 04:47 AM
You need to use IsNumeric(anytext), this will return true only if [anytext] is entirly numeric, ie. IsNumeric(!) will return false.

Hope this helps