padding a string
-
I have: MyString(0) = "a" MyString(1) = "bbbb " MyString(2) = "mmmm" What I want to do is make each element 10 characters long with 1. zeros in the extra spaces and 2. blank spaces. So that MyString(1) = "bbbb000000" or MyString(1) = "bbbb " Are these 10 characters 10 bytes in memory? Appreciate your help, ns
-
I have: MyString(0) = "a" MyString(1) = "bbbb " MyString(2) = "mmmm" What I want to do is make each element 10 characters long with 1. zeros in the extra spaces and 2. blank spaces. So that MyString(1) = "bbbb000000" or MyString(1) = "bbbb " Are these 10 characters 10 bytes in memory? Appreciate your help, ns
ns wrote: Are these 10 characters 10 bytes in memory? I don't think it will take 10 bytes because VB uses unicode which means 2 bytes per character..
-
ns wrote: Are these 10 characters 10 bytes in memory? I don't think it will take 10 bytes because VB uses unicode which means 2 bytes per character..