- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am making the call : Iret = WinExec('NotePad.exe '//efile(1:lenE)//CHAR(0) ,SW_SHOW)
What call must I make to only proceed when the above call is successful?
What call must I make to only proceed when the above call is successful?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you look up the specification for WinExec in CVF Help or in the MSDN library, you will find the answer in the return value: "If the function succeeds, the return value is greater than 31". So I suggest:
if (Iret > 31) then ........................
But you might also like to consider what to do if it fails - see the spec.
HTH
Bear of Little Brain
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page