Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Paint Brush
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00153835
Message ID:
00153889
Views:
23
>Anybody know how to open PAINT BRUSH from within Foxpro??
>
>CreateObject("????????"

If you want to open paint brush without opening a file (and you know the complete path), use RUN.

Otherwise, you can use ShellExecute, passing the name of the file you want opened, like this:
DECLARE INTEGER ShellExecute IN Shell32;
  INTEGER hwnd, STRING @lpOperation, STRING @lpFile,;
  STRING @lpParameters, STRING @lpDirectory, SHORT nshow
* lcfile is the bitmap to open, lcdir is the working directory.
* lnshow is the show command
lcop = 'open'
lnresult = ShellExecute(0, @lcop, @lcfile, 0, @lcdir, lnshow)
See help for RUN for the lnshow values. The return value will be greater than 31 if the function succeeds.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform