Solved

getting text to text.. (McRider)

Posted on 2000-04-25
6
124 Views
Last Modified: 2010-05-02
Private Sub Command2_Click()
Open Text2 For Append As #1
Print #1, Text1.Text  
Close #1
'Save to a file.
End Sub

But now i will to open a textfile , i already know how but how can i display the contents it must look as:


Private Sub Command2_Click()
Open Text2 For input As #1
??????? #1, Text1.Text  
Close #1
'Save to a file.
End Sub

where the ??????? is the question
0
Comment
Question by:markyvt
  • 3
  • 3
6 Comments
 
LVL 9

Expert Comment

by:Dalin
ID: 2748755
Line Input #1, Text1.Text  
0
 
LVL 2

Author Comment

by:markyvt
ID: 2750640
Dalin as it works the points are for you i'm gonna test it now see ya.
0
 
LVL 2

Author Comment

by:markyvt
ID: 2750647
This gives an error, the text is not one rule (text1) is an text block


Private Sub test_Click()
Open Text2 For Input As #1
Line Input #1, Text1.Text
Close #1
End Sub

This works not
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 9

Accepted Solution

by:
Dalin earned 50 total points
ID: 2750982
I see.  Try this:
Text1.Text = Input(LOF(1),1)
0
 
LVL 2

Author Comment

by:markyvt
ID: 2758868
Thank you man your the best.
0
 
LVL 9

Expert Comment

by:Dalin
ID: 2758934
You are welcome. Good luck in your project.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question