oHrb = HB_CompileFromBuf( StrTran( ::oEditor:GetText(), "Main", "__Main" ),;
"-n", "-I..\include", "-Ic:\harbour\include" )
oHrb = HB_CompileFromBuf( StrTran( ::oEditor:GetText(), "Main", "__Main" ),;
"-n", "-I" + AllTrim( ::cFWHPath ) + "\include",;
"-I" + AllTrim( ::cHarbPath ) + "\include" )
METHOD RunScript() CLASS TFivedit
local oHrb, cResult, bOldError
FReOpen_Stderr( "comp.log", "w" )
oHrb = HB_CompileFromBuf( StrTran( ::oEditor:GetText(), "Main", "__Main" ),;
"-n", "-I" + AllTrim( ::cFWHPath ) + "\include",;
"-I" + AllTrim( ::cHarbPath ) + "\include" )
if "error" $ MemoRead( "comp.log" )
MsgInfo( MemoRead( "comp.log" ), "Error" )
else
if ! Empty( oHrb )
BEGIN SEQUENCE
bOldError = ErrorBlock( { | o | DoBreak( o ) } )
hb_HrbRun( oHrb )
END SEQUENCE
ErrorBlock( bOldError )
endif
endif
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 53 guests