G
Guest
Hi,
Reg:-VisualBasic .Net -SmartDeviceApplication - Pocket PC
I am using a ListBox to display records from a text file(with extension as
..MST). In the file, each record is stored as a string with fixed width(fixed
number of characters). Each line in the text file consists of one record.
So I am using the readLine() function to read each record and adds it to the
Listbox.
But I am facing some irregularity in Displaying items in listbox. For
example, the first field consists of 20 characters and the second field
consists of 15 characters. I am displaying only those two fields. In all
cases, my data in the first field consists of only 12 characters and the next
8 characters are white spaces. So normally 8 blank spaces should be there
before displaying the next field.
In my case, in the pocket pc, it is not displaying all the 8 blank
characters. Instead, it is just displaying only 5 blank characters.
Whatever blank characters are there in between first and second field(>5),
then it is just displaying only 5 blank spaces. I want the complete blank
spaces in the record to get displayed. i.e., after 12 characters, if it is
blank, then I want 8 blank spaces.
If anybody is ready to read it carefully and answer it, it will be a great
help for me.
Hari
Reg:-VisualBasic .Net -SmartDeviceApplication - Pocket PC
I am using a ListBox to display records from a text file(with extension as
..MST). In the file, each record is stored as a string with fixed width(fixed
number of characters). Each line in the text file consists of one record.
So I am using the readLine() function to read each record and adds it to the
Listbox.
But I am facing some irregularity in Displaying items in listbox. For
example, the first field consists of 20 characters and the second field
consists of 15 characters. I am displaying only those two fields. In all
cases, my data in the first field consists of only 12 characters and the next
8 characters are white spaces. So normally 8 blank spaces should be there
before displaying the next field.
In my case, in the pocket pc, it is not displaying all the 8 blank
characters. Instead, it is just displaying only 5 blank characters.
Whatever blank characters are there in between first and second field(>5),
then it is just displaying only 5 blank spaces. I want the complete blank
spaces in the record to get displayed. i.e., after 12 characters, if it is
blank, then I want 8 blank spaces.
If anybody is ready to read it carefully and answer it, it will be a great
help for me.
Hari