>HI,
>
>I want to add a button at my product screen layout, click on it, that will display/view a .JPG file (product's photo).
>I don't want to display the .JPG file in FoxPro (cause that will not in full size).
>And i'm not sure what "view photo application" had install at that workstation.
>(i find that, when i double-click on a photo file in Window, it will open it default from ACDSee application)
>
>How can i open it by default application, while click on this button ??
>
>
>Thank a lot,
>HS
In addition to the API call, the Windows Script Host's WScript.Shell Object's Run method can do it and more. For example, it can be instructed to have the calling program wait until the called application is closed
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run(lcfile)
George
Ubi caritas et amor, deus ibi est