Results 1 to 2 of 2

Thread: Testing for Numbers in a text file

  1. #1
    james_scrivener
    Guest
    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

  2. #2
    Addicted Member
    Join Date
    Mar 2001
    Posts
    157
    You need to use IsNumeric(anytext), this will return true only if [anytext] is entirly numeric, ie. IsNumeric(!) will return false.

    Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width