Results 1 to 4 of 4

Thread: VB String

  1. #1

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

    VB String

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

    regards,
    Murugan.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    a = Left$(a, Len(a)-1)

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    Err, how about...

    VB Code:
    1. 'Assuming the string is "a"
    2. If right(a,1) = "," then
    3.     a = left(a,len(a)-1)
    4. end if
    You just proved that sig advertisements work.

  4. #4
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    dammit
    You just proved that sig advertisements work.

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