Format the string inside a ListItem
-
Hi, I would need to arrange the text property of a ListItem into columns, i.e. I need to pad the substring. Example: string 1 string 2 should become: "string 1 " "string 2 " Then I need to add them together, the result should be "string 1 string 2 " I know how to pad a string using the PadLeft command but when I try to assign the Text property of a ListItem the space between the substrings (string 1 and string 2) in this case is schrinked to a single space. The reason I want to do this is that I want to add this ListItems to a DropDownListBox and the text inside it needs to formatted into columns. Anyone who can give me any advice? R Rickard
-
Hi, I would need to arrange the text property of a ListItem into columns, i.e. I need to pad the substring. Example: string 1 string 2 should become: "string 1 " "string 2 " Then I need to add them together, the result should be "string 1 string 2 " I know how to pad a string using the PadLeft command but when I try to assign the Text property of a ListItem the space between the substrings (string 1 and string 2) in this case is schrinked to a single space. The reason I want to do this is that I want to add this ListItems to a DropDownListBox and the text inside it needs to formatted into columns. Anyone who can give me any advice? R Rickard