Solved

getting text to text.. (McRider)

Posted on 2000-04-25
6
123 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

832 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