Hello Harvey,
the source code is also included.
Please have a look to:
- Code: Select all Expand view
DEFINE BUTTON FILE cPathBMP + "run.bmp" OF oBar ;
ACTION iif(file(winexec(cDirName + substr(oBrw:aArrayData[oBrw:nArrayAt,1],1,( len(oBrw:aArrayData[oBrw:nArrayAt,1])-4) )+ ".exe" )),;
winexec(cDirName + substr(oBrw:aArrayData[oBrw:nArrayAt,1],1,( len(oBrw:aArrayData[oBrw:nArrayAt,1])-4) )+ ".exe" ),msginfo("File not found")) ;
PROMPT "&Run" ;
TOOLTIP "Run" ;
MESSAGE "Run" NOBORDER
“Run” only executes programs which are already compiled.
As I use UeStudio for my work I compile with UeStudio.
Before I had also a function call:
function compile( oBrw )
// winexec("buildx.bat " + substr(oBrw:aArrayData[oBrw:nArrayAt,1],1,( len(oBrw:aArrayData[oBrw:nArrayAt,1])-4) ) )
winexec("buildh.bat " + substr(oBrw:aArrayData[oBrw:nArrayAt,1],1,( len(oBrw:aArrayData [oBrw:nArrayAt,1])-4) ) )
return nil
>None of the button bmps appear.
In the sample.dbf I have "c:\FWH\samples" – first record. Maybe you have a different folder.
The “SamplesPreview” folder must be a subfolder of “samples”.
Best regards,
Otto