home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
text
/
edit
/
macro
/
e
/
e.ged
next >
Wrap
Text File
|
1994-05-09
|
2KB
|
73 lines
/* $VER: 0.9 Compile E program */
OPTIONS RESULTS /* enable return codes */
if (LEFT(ADDRESS(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
address 'GOLDED.1'
'LOCK CURRENT' /* lock GUI, gain access */
OPTIONS FAILAT 6 /* ignore warnings */
SIGNAL ON SYNTAX /* ensure clean exit */
/* ------------------------- INSERT YOUR CODE HERE: ------------------ */
'QUERY CAT'
isGerman = (result = "deutsch")
'QUERY ANYTEXT'
if (result = 'TRUE') then
do
'QUERY DOC VAR OLDNAME' /* remember current file name */
'SAVE ALL NAME="RAM:Test.e"' /* create temorary file */
shell /* address shell */
'E_Bin:EC RAM:Test' /* Starten von AmigaE */
ok = (RC = 0)
shell /* address host (GoldED) */
'NAME NEW ' || oldname /* restore old file name */
if (ok) then do
if (isGerman) then
'REQUEST BODY="E ist fertig. Programm starten ?" BUTTON="_starten|_abbrechen"'
else
'REQUEST BODY="E done. Run program ?" BUTTON="_run|_cancel"'
if (result = 1) then do
'QUERY CON VAR CON'
shell
'RAM:test >' || CON
shell
end
end
end
else do
if (isGerman) then
'REQUEST BODY="Kein Text vorhanden ?!"'
else
'REQUEST BODY="Text buffer is empty ?!"'
end
/* ---------------------------- END OF YOUR CODE ----------------------- */
'UNLOCK' /* VERY important: unlock GUI */
EXIT
SYNTAX:
SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
'UNLOCK'
EXIT