Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone who knows the vfp code for this
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00677862
Message ID:
00677882
Views:
20
If you're trying to close word, the you could get a reference to it with GetObject and then use the .Quit() method:
* assumes that there is only one copy of word running
local lcOnError
lcOnError = ON('ERROR')
on error *
loWord = getobject(,'word.application')
if vartype(loWord) = 'O'
  loWord.Quit(.f.)
endif
loWord = .null.
ON ERROR &lcOnError.
Cheers,

Andrew

>The code below is a vb code which send keypresses to a particular application. Anyone who knows the vfp code for this. I want to create a keyboard program for a touch screen POS System.
>
>AppActivate "Microsoft Word" ' activate the application to send to keypress
>SendKeys "%{F4}", True ' Alt F4


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Previous
Reply
Map
View

Click here to load this message in the networking platform