#include "fivewin.ch"
#define crlf CHR(13) + CHR(10)
FUNCTION MAIN()
LOCAL oWnd
LOCAL oGet , cGet := ""
LOCAL oCreate
DEFINE WINDOW oWnd
@ 1 , 1 BUTTON oCreate SIZE 60 , 20 ACTION create_txt()
@ 3 , 1 GET oGet VAR cGet SIZE 400 , 400 MEMO OF oWnd
ACTIVATE DIALOG oWnd
RETURN NIL
FUNCTION CREATE_TXT()
LOCAL cString := ""
LOCAL i
FOR i := 1 TO 500
cString := cString + "This is the line #" + STR( i ) + " This is the line #" + STR( i ) + "This is the line #" + STR( i ) + crlf
NEXT i
memowrit( "filetocopy.txt" , cString )
? "LEN " , LEN( cString )
shellexecute( 0 , 0 , "filetocopy.txt" , 0 , 0 , 1 )
RETURN NIL
oGet:LimitText()
@ 3 , 1 GET oGet VAR cGet SIZE 400 , 400 MEMO OF oWnd
MarcoBoschi wrote:Enrico,
strange the name of this method.
Exactly the opposite of what it does.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 101 guests