VB6 Compare

Discussion in 'Software' started by ceal21c, May 22, 2006.

  1. ceal21c

    ceal21c Private E-2

    Hey Guys,

    I have two strings strFullName (Bobby John)and strFirstName (Bobby). I need to search strFullName for the existance of strFirstName. When I try to use the following code I never get a match because the two strings are not identical; Answer = StrComp(strFirstName, strFullName). Is there a way to perform a partial search for the existance of "Bobby" within "Bobby John"?
     
  2. Kodo

    Kodo SNATCHSQUATCH

    use InStr() or a regular expression
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds