Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 22151

Unable to add strings greater than 255 characters to a list box

$
0
0
Hi All,

I am using the below code to add strings to a listbox from a file. The problem is I am unable to add the entire string as the string is truncated beyond 255 characters

Code:


Open "D:\ccapplications\AddressFile\dat\PostOfficeFile\uspsforwardedaddressfiledupconsolidate.txt" For Input As #fh
    Do While Not EOF(fh)
        Line Input #fh, LineFromFile
        NewLine = Mid$(LineFromFile, 44, 20) & Mid$(LineFromFile, 120, 60) & Mid$(LineFromFile, 347, 40) & LineFromFile
        List2.AddItem NewLine
    Loop


Viewing all articles
Browse latest Browse all 22151

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>