Results 1 to 3 of 3

Thread: String in VB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    chennai
    Posts
    69

    String in VB

    Hi,
    i have one string like this......
    a=string1,string2,string3,string4,
    here i don't want lat comma.....how can i remove that.....any body know abt it tell me....

    regards,
    Murugan.

  2. #2
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    321
    VB Code:
    1. dim str() as string
    2. dim counter as integer
    3.  
    4. str = split(a,",")
    5.  
    6. for counter = 0 to Ubound(str)
    7.      debug.print Trim(str(counter))
    8. next

  3. #3
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284
    A = "Bla,Bla,Blaaaa,Blablalba"

    Replace A,",",""

    then 'A' will be the same : "BlaBlaBlaaaaBlablalba"

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