CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Jan 2004
    Location
    TX, USA
    Posts
    347

    Replace Chr(32) or "*" with ""

    Can't seem to get either one of these to work:
    I want to replace all "*" with ""

    Code:
    a=replace(a,"*","")
    a=replace(a,chr(42),"")
    
    m=""
    for i=1 to len(a)
      t=mid(a,i,1)
      if t<>"*" then m=m+t    (tried chr(32) here also
    next i
    Two hours spent here...
    Last edited by nbCathy; September 30th, 2004 at 10:51 AM. Reason: used wrong code number or *
    Cathy
    Jan 2004 - NEWBIE to VB6
    Any and all help appreciated

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

Featured