Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking if Word is still open

Status
Not open for further replies.

dellyjm

Programmer
Apr 13, 2000
168
JM
How do I check from within my code to see if Word is still open?

public wrdApp
public docFile
public bIsWordOpen

wrdApp = GetObject("","Word.Application")

With wrdApp
.Visible = .T.
.Documents.Add
ENDWITH

bIsWordOpen = .T.

I opened Word above for the user. How will i know when Word is closed?

Delton.
 
In VB I think i could do

If wrdApp = nothing then
i'd know. How do i do that in fox.
endif

Delton.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top