Jeff Johnson wrote on 2013-11-04: > I have a modeless form that launches a print to pdf process. I put my > code in the init and return .f. but then the prg that launched the form > waits for the init to take place. Instead, I want to launch the form > hidden but running in the background and return to the prg immediately. > What is the best way to do this. This form prints a report to pdf and I > don't want the user to have to wait for it. > > TIA
Jeff, You're asking VFP to be multithreaded. It is not. You could have a separate program you launch with ShellExec API to do the longer process you don't need feedback from. I need feedback so I use a C++ DLL from Christof DMULT.DLL. Kevin Ragsdale has a post about Multithreading Visual FoxPro http://kevinragsdale.net/multithreaded-visual-foxpro/ Tracy Pearson PowerChurch Software _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

