Results 1 to 3 of 3

Thread: how to circumcise a string

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Location
    Mentor,Oh,US
    Posts
    33

    Question

    I want to know how to erase the last four characters of a string that are generated at run time. It currently looks something like this.

    Code:
      bsp0 = List2.List(0)
      bsp1 = List2.List(1)
    
     a.WriteLine ("set m1 ""fraglimit 10" & " ; map ") & Len(bsp0), 4
     a.WriteLine ("set m2 ""fraglimit 10" & " ; map ") & Len(bsp1), 4
    bsp0 and bsp1 are both filenames added from a FileListBox. The FileListBox has a preset filter, so the file ext will always be the same. And how do you generate as many of these "a.WriteLine..." lines as needed by the list2.listcount?

    thanks a lot!


    -deadBird

    If at first you DO succeed, don't look too astonished!
    -deadBird
    =================

  2. #2
    Lively Member
    Join Date
    Sep 2000
    Location
    Singapore
    Posts
    78
    Try using data type structure or arrays of string?

  3. #3
    Guest
    Code:
    MyString = Left$(MyString,len(mystring)-4)

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