Solved

getting text to text.. (McRider)

Posted on 2000-04-25
6
120 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
Comment Utility
Line Input #1, Text1.Text  
0
 
LVL 2

Author Comment

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

Author Comment

by:markyvt
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 9

Accepted Solution

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

Author Comment

by:markyvt
Comment Utility
Thank you man your the best.
0
 
LVL 9

Expert Comment

by:Dalin
Comment Utility
You are welcome. Good luck in your project.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now