|
-
Jan 5th, 2000, 08:06 PM
#1
Thread Starter
New Member
TextBox control whith property MultiLine=True is limited in 32K.
How can I broken this limit?
For example if I need read un archive .txt to this textBox?
Thanks,
Rogerio
-
Jan 5th, 2000, 08:09 PM
#2
You can use a rich text box instead, if you don't mind exporting as RTF format.
------------------
Matthew Ralston
E-Mail: [email protected]
ICQ:31422892
Web Sites:The Blue Link My Home Page (Not up at the moment!)
-
Jan 6th, 2000, 05:08 AM
#3
Member
If you use the Text property instead of the TextRTF property it will export as a perfectly good textfile.
-
Jan 6th, 2000, 06:16 AM
#4
Addicted Member
This should do the trick.
I haven't tested the code yet but it should work.
Option Explicit
Private Const LINES = 15
Private strA() As String
Private Sub Form_Load()
Dim intN
'Load dynamic string array from large text files.
Open "C:\yourtextfile.txt" For Input As #1 Len = 1024
Do Until EOF(1)
intN = intN + 1
ReDim Preserve strA(intN + LINES)
Line Input #1, strA(intN)
Loop
Close #1
'Set Scrollbar Prop.
With vsbTest
.Min = 1
.Max = intN
.SmallChange = 1
.LargeChange = intN \ 10
End With
End Sub
Private Sub vsbTest_Change()
Dim IntI As Integer
Dim strTmp As String
'Create display string from array elements
For intI = vsbTest.Value To vsbTest.Value + LINES
strTmp = strTmp + atrA(intI) + vbCrLf
Next intI
txtTest.Text = strTmp
End Sub
that should be it..
hope it helps
-Lumin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|