Syntax Error
Posted: Thu Aug 05, 2010 7:10 am
Why do I get these syntax errors:
Compiling 'reindex.prg'...
reindex.prg(28) Error E0030 Syntax error "syntax error at '@'"
reindex.prg(30) Error E0030 Syntax error "syntax error at '.'"
reindex.prg(63) Error E0030 Syntax error "syntax error at '.'"
reindex.prg(65) Error E0030 Syntax error "syntax error at '.'"
reindex.prg(67) Error E0030 Syntax error "syntax error at '.'"
from the following statements (with focus on lines 23-30):
14 #include "i_ini.ch" // define CRLF
15
16 ************************************************************************
17 function Reindex(nSubChoice)
18 *************************************************************************
19 // reindex system files
20 // 2010-08-01 revised to conform to hmg
21
22 // preparing the editbox
23 @ 10, 10 EDITBOX ebRein ;
24 OF PARENT MainForm ;
25 WIDTH 300 ;
26 HEIGHT 300 ;
27 VALUE "Reindexing files:" + CRLF ;
28 READONLY
29
30 MainForm.ebRein.Show
...
57 // reindex file 1
58 if file("sss&cyear..dbf")
59 if DbOpen(1, "sss&cyear", .F.)
60 index on empnumbr to sss&cyear
61 dbclosearea()
62 endif
63 MainForm.ebRein.Value += "SSS " + cYear + " file..." + CRLF
64 else
65 MainForm.ebRein.Value += "No SSS file for " + cYear + "." + CRLF
66 endif
67 MainForm.ebRein.Refresh
The purpose here is to display/log the indexing process into an editbox while indexing is going on (though I'm not sure if this will work as I can't get pass statements 23-30)
Any idea or suggestions?
Compiling 'reindex.prg'...
reindex.prg(28) Error E0030 Syntax error "syntax error at '@'"
reindex.prg(30) Error E0030 Syntax error "syntax error at '.'"
reindex.prg(63) Error E0030 Syntax error "syntax error at '.'"
reindex.prg(65) Error E0030 Syntax error "syntax error at '.'"
reindex.prg(67) Error E0030 Syntax error "syntax error at '.'"
from the following statements (with focus on lines 23-30):
14 #include "i_ini.ch" // define CRLF
15
16 ************************************************************************
17 function Reindex(nSubChoice)
18 *************************************************************************
19 // reindex system files
20 // 2010-08-01 revised to conform to hmg
21
22 // preparing the editbox
23 @ 10, 10 EDITBOX ebRein ;
24 OF PARENT MainForm ;
25 WIDTH 300 ;
26 HEIGHT 300 ;
27 VALUE "Reindexing files:" + CRLF ;
28 READONLY
29
30 MainForm.ebRein.Show
...
57 // reindex file 1
58 if file("sss&cyear..dbf")
59 if DbOpen(1, "sss&cyear", .F.)
60 index on empnumbr to sss&cyear
61 dbclosearea()
62 endif
63 MainForm.ebRein.Value += "SSS " + cYear + " file..." + CRLF
64 else
65 MainForm.ebRein.Value += "No SSS file for " + cYear + "." + CRLF
66 endif
67 MainForm.ebRein.Refresh
The purpose here is to display/log the indexing process into an editbox while indexing is going on (though I'm not sure if this will work as I can't get pass statements 23-30)
Any idea or suggestions?