I use the following tcFile=alltrim(mytable.myfield)
wait window nowait 'Opening '+tcFile DECLARE INTEGER ShellExecute ; IN SHELL32.dll ; INTEGER nWinHandle,; STRING cOperation,; STRING cFileName,; STRING cParameters,; STRING cDirectory,; INTEGER nShowWindow DECLARE INTEGER FindWindow IN WIN32API STRING cNull,STRING cWinName RETURN ShellExecute(FindWindow(0,_SCREEN.caption),tcAction,tcFile,"",SYS(2023),1) Is this what you're looking for ? On Mon, Jul 26, 2010 at 4:22 PM, wtc <[email protected]> wrote: > I have a field to store the picture location. When double click on the > field, I want it auto look for the default photo viewer program in the > OS system to open it. > How to do it in foxpro? any sample for me to refer? > > TIA > > [excessive quoting removed by server] _______________________________________________ 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/[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.

