Extract number part from a string in VB6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MaryJolly
    New Member
    • Aug 2008
    • 3

    Extract number part from a string in VB6

    I want to extract number part from a string. I am doing project in VB6 and my MSFlexGrid control contains certain codes in the first column.eg. EC101,CS104,etc . I want to extract the number part from the text.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    you need to use some string functions like MID,LEFT etc.

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      I will give you the logic, write the program..
      Loop thru the Length of the string using "LEN" function, and
      Find Each character using MID finction,
      if it is a numeric, then find the Values..

      Regards
      Veena

      Comment

      Working...