Forgetabull
Programmer
Hi everyone,
I'm quite new to foxpro development. I'm working in MS Foxpro 9. Here's my code snippet:
IF FILE(lcpdf)
SET PROCEDURE TO print2pdf.prg ADDITIVE
lodist = CREATEOBJECT("Print2PDF")
lodist.ReadIni()
lodist.cPSFile = lcpdf
lodist.cOutputFile = FULLPATH(THIS.output_file)
lnresult = lodist.MakePDF()
lodist = NULL
SET PROCEDURE TO
DELETE FILE (lcpdf)
ENDIF
After returning to the main thread (main.prg) it seems to get lost in the program flow and can't find any of the class definitions or other foxpro files from the main program and subsequently crashes. Any idea ?
cheers,
Alan
I'm quite new to foxpro development. I'm working in MS Foxpro 9. Here's my code snippet:
IF FILE(lcpdf)
SET PROCEDURE TO print2pdf.prg ADDITIVE
lodist = CREATEOBJECT("Print2PDF")
lodist.ReadIni()
lodist.cPSFile = lcpdf
lodist.cOutputFile = FULLPATH(THIS.output_file)
lnresult = lodist.MakePDF()
lodist = NULL
SET PROCEDURE TO
DELETE FILE (lcpdf)
ENDIF
After returning to the main thread (main.prg) it seems to get lost in the program flow and can't find any of the class definitions or other foxpro files from the main program and subsequently crashes. Any idea ?
cheers,
Alan