I am using Xprompt on Windows 7
My code is as follows:
Request dbfntx
set defaultrdd("dbfntx")
local mmpn,mmpi,mmpt,mcsp
proc main()
sele 1
use g:\f7_\llm____
do whil .t.
do whil !bof()
local subs(x,1,1) := T
goto bott
mmpn := mpn
mcsp := csp
mmpi := mpi
mmpt := mpt
local mpn := mmpn
repl all csp with mcsp,mpi with mmpi,mpt with mmpt
local subs(x,1,1) := T
if bof()
rele all like m*
exit
retu
else
skip -1
endi
endd
endd
retu
Any assistance would be appreciated.
I am using Xprompt on Windows 7[...]
My code is as follows:
Request dbfntx
local mmpn,mmpi,mmpt,mcsp... you have just opened the file, you are likely at BOF.
proc main()
set defaultrdd("dbfntx") > sele 1 ]
use g:\f7_\llm____
do whil .t.
goto bott ... syntax error? goto expects a record number.[...] statement moved up
go bott]
do whil !bof()
local subs(x,1,1) := T... neither 'x' nor 'T' have been defined
mmpn := mpnWhat the hell are you trying to do with the above statement? "LOCAL" has a meaning, it defines a symbolic name, and optionally assigns it a value. You have already used 'mpn' about 5 lines before. And if 'mpn' is a field name in your database, you
mcsp := csp
mmpi := mpi
mmpt := mpt
local mpn := mmpn
repl all csp with mcsp,mpi with mmpi,mpt with mmpt... same crap
local subs(x,1,1) := T
if bof()... recommend you issue CLOSE ALL
rele all like m*... includes DBF field names, right?
exit "Dan: THIS is why it would not be an infinite loop, if it did not have other errors."... only makes sense at the end of a function. The following "else" (just below) ends the true condition processing.
retu
else... this entire "do while .t." and second "endd" loop are pointless.
skip -1
endi
endd
endd
retu
Any assistance would be appreciated.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 14:08:37 |
Calls: | 6,645 |
Files: | 12,190 |
Messages: | 5,326,926 |