Antonio Linares wrote:Rimantas,
You may use xHB's "xHbScript", it works fine with FWH
#include "FiveWin.ch"
function Main()
local oDlg, lExit := .f., oBtn
DEFINE DIALOG oDlg FROM 5, 5 TO 15, 40 TITLE "A Dialog Box"
@ 3, 4 BUTTON "&Ok" OF oDlg SIZE 40, 12
@ 3, 12 BUTTON oBtn PROMPT "&Cancel" OF oDlg SIZE 40, 12 ;
ACTION ( MsgInfo( "Cancel" ), lExit := .t., oDlg:End() )
ACTIVATE DIALOG oDlg VALID lExit
return nil
James Bott wrote:I'm just curious, where are you going with this? What is the advantage to using script insead of code?
#include "FiveWin.ch"
function Main()
Compile( "another.prg" )
__HrbRun( "another.hrb" )
MsgInfo( "done" )
return nil
function Compile( cPrgName )
WinExec( "harbour.exe " + cPrgName + " /n /gh", 0 )
while ! File( cFileNoExt( cPrgName ) + ".hrb" )
SysRefresh()
end
return nil
function DontNameThisMain()
MsgInfo( "Hello world!" )
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 54 guests