|
-
Jul 20th, 2004, 05:10 PM
#1
Thread Starter
Addicted Member
how to display the files .......?
how to display the files which is file1.filename exactly in a text1.text ?
i.e i want to display al the files which is in File1 in a text box
Regds
Sam F.
-
Oct 28th, 2004, 04:44 AM
#2
Member
I'm not quite sure what you mean. If you want to concatenate a number of files together in a text box then simply use the code:
text1.text=text1.text & moretext
Text boxes are limited to 32k of data. If you want a WYSIWYG display then you may have to use the RichTextBox. Hope this helps.
Nick
-
Oct 28th, 2004, 07:20 AM
#3
Member
text1.text = file1.filename
When i write my code, there are only 2 ppl that understand it, me and God... a week later... God only knows 
(can't remember where i heard/read that)
-
Oct 29th, 2004, 12:07 PM
#4
Software Eng.
If you meant how to open the file selected by a FileListBox:
Code:
Open Dir1 & File1.Filename for Input As #1
Text1.Text = Input(LOF(1), 1)
Close #1
-
Oct 30th, 2004, 01:26 AM
#5
Frenzied Member
VB Code:
Dim L As Long
Dim s As String
Private Sub Command1_Click()
s = vbNullString
For L = 0 To File1.ListCount - 1
s = s & File1.List(L) & vbCrLf
Next
Text1.Text = s
End Sub
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
|