I need one of my forms to automatically print out at 9 a.m. everyday.The computer and printer are on permanently.
help needed for code and where to place code.
THANK YOU
You could move your code to a script, then have any scheduler kick off paradox with the appropriate command line options eg.
"c:\program files\borland\paradox\pdxwin32.exe -w workingdir scriptname.ssl"
If you need to retain the existing form for interactive use, your script can open the form and push whatever buttons are necessary, otherwise you can move all the code to the script.
HTH,
Richie
Thanks
i have not done any programming with scripts, please could you give me a bit more info.
I can program into the main "main menu Form " on my paradox application which is open at all times, i was thinking of putting a time field on the form then a timer to trigger at 9am to push the form button on the form i want to print.
You mentioned a scheduler is this a windows prog or can you make one in paradox .
regards.
Scripts are just like forms without a user interface. The main method is called run and just runs as soon as the script is called.
If your form is constantly running then its easier. You can put a timer in the open method of the form:
self.setTimer(60000, true)
this would run the timer event every minute. In the forms timer event add the code to push the button.
if hour(time()) = 9 and minute(time()) = 0 then
buttonname.pushbutton()
endif
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.