What message() is in the catch? Are you directly returning the value of ShellExecute to the calling code? Depending on your declaration it might be expecting a logical and the declaring returns a numeric.
-----Original Message----- >From Sytze de Boer Sent: Thursday, October 08, 2009 3:52 PM Subject: VFP9 - Shellexecute Some clients were reporting issues with a specific module in my system So, I thought I would try something with Try/Endtry Within the try/endtry routine, this returns an error and goes to Catch tcFile="http://kingcashbook.com" Return ShellExecute(FindWindow(0,_Screen.Caption),tcAction,tcFile,"",Sys(2023),1) This doesn't ShellExecute(FindWindow(0,_Screen.Caption),tcAction,tcFile,"",Sys(2023),1) Within a standard prg or form, both work fine I don't understand why _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/000801ca4855$ccdf80a0$669e81...@com ** 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.

