Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
 To: Agung Kurnianto
  Where is Agung Kurnianto?
 Bogor
 Indonesia
 Agung Kurnianto
 Tags
Subject: RE: Notepad
Thread ID: 112381 Message ID: 112403 # Views: 4 # Ratings: 0
Version: Visual FoxPro 9 Category: Active X Controls & OLE Automation
Date: Wednesday, November 08, 2006 8:20:05 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)

>
>
>
> Hi Ken,
> Thanks for your reply, I want to generate the table result just like on query analyser for MSSQL and for now I used editbox to display the data but the text will wrapped when the character get on the right margin. Is possible in editbox not wrapped the text and has multi line.
>
> Thanks.



Add CHR(13) wherever you want the line to go to the next.

ThisForm.Edit1.Value = "SELECT * from customer "+CHR(13)+"Where id = 21 "+CHR(13) + "Order by name"

will give you multiline in the edit box

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