Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: Agung Kurnianto
  Where is Agung Kurnianto?
 Bogor
 Indonesia
 Agung Kurnianto
 Tags
Subject: RE: Notepad
Thread ID: 112381 Message ID: 112382 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Active X Controls & OLE Automation
Date: Wednesday, November 08, 2006 3:23:24 AM         
   


> Hi,
> Is there any control like notepad or maybe activeX that similar with notepad.
>
> Thanks.


Agung,

You can use an editbox. To load the editbox with the contents of a text file,
ThisForm.MyEditbox.Value = FILETOSTR([Path2\MyFile.Txt])

To save the contents of the textbox back to that file,
lnBytesWritten = STRTOFILE(ThisForm.MyEditBox.Value,[Path2\MyFile.Txt])

If you want, you can also use the MODIFY FILE command and that will give you the VFP editor. What are you trying to do?

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

Notepad Posted by Agung Kurnianto @ 11/8/2006 3:10:54 AM
RE: Notepad Posted by Ken Murphy @ 11/8/2006 3:23:24 AM
RE: Notepad Posted by Agung Kurnianto @ 11/8/2006 5:12:48 AM
RE: Notepad Posted by Bernard Bout @ 11/8/2006 8:20:05 AM
RE: Notepad Posted by Agung Kurnianto @ 11/8/2006 9:54:56 AM
RE: Notepad Posted by Bernard Bout @ 11/9/2006 5:49:59 AM