Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sys(1037) cancel button

Status
Not open for further replies.

JaneJantz

Programmer
Sep 13, 2000
55
US
Is there a way to use sys(1037) in my application and know when the user clicked the "cancel" button? Can't seem to find where that is returned. Thanks for the help.
 
Hi;


SYS(1037) always returns an empty string.
BTW, SYS(1037) is a Visual Fox Pro command. You might have better luck posting your question in the VFP forum.
That being said, what is it exactly that you are trying to do?

Ed Please let me know if the sugestion(s) I provide are helpful to you.
Sometimes your the windshield... Sometimes your the bug.

 
Jane,
Unfortunatly, this is one of those things that's always been a "Gotcha" in Fox2.6. I'm sure as you are aware, this is not exclusively a VFP command. In 2.6, there is no way, (That I am aware of, and I've been a 2.x developer for 10 years) to caputer the input of the Print Control box forced by SYS(1037).
As a side note, as opposed to SYS(1037), I typically use REPORT FORM <formname> TO PRINTER PROMPT NOCONSOLE

The PROMPT command effectively yields the same thing as SYS(1037), but isn't so cryptic, and does not add extra lines to code. It's also easier to control. In either case, there's no was to get the result value of clicking &quot;Cancel&quot;, at least not in native Fox.
Wish I had a better answer for you...

Cheers,
-Scott
 
Thank you for your help... unfortunately, I have over 500 reports in my application... almost all of which were hard-coded. I have them printed to a file and shown on the screen. If they want to print them, I show the sys(1037) window for printer selection. To get around the cancel button, I have a popup message saying &quot;The printer is ready, do you want to continue?&quot;.... that gives them an out for cancelling. Wish there were an less wordy way, but oh well...
This is a great forum... Thanks again for your responses.
Jane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top