-
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
-
Try using data type structure or arrays of string?
-
Code:
MyString = Left$(MyString,len(mystring)-4)