Results 1 to 1 of 1

Thread: [RESOLVED] How to scan text line for a numeric value

  1. #1
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,781

    Resolved [RESOLVED] How to scan text line for a numeric value

    I have a text line that has text in it and somewhere in the middle there is going to be a number, like for example:

    "This is a sample of one of the many text lines and this is text line 233 but there are many more lines to follow"

    How to I find the number or at least the 1st digit?


    EDIT:

    Never mind I got it

    Code:
      '
      '
     For n = 1 To Len(TextLine)
       If IsNumeric(Mid(TextLine, n, 1)) Then
         '
         '
    Last edited by jmsrickland; Aug 29th, 2012 at 05:10 PM.
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

Posting Permissions

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