Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObject
Message
From
28/03/2002 07:31:19
 
 
To
28/03/2002 06:21:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00638312
Message ID:
00638320
Views:
27
Hi Nelly

I am creating a word object as shown below but if its already open i get an error, how could I check to see if its already open first and if it is show it?

Try this instead:
lcDoc = "D:\MyDocs\MyDocument.doc"

oWord = GETOBJECT( lcDoc )
IF VARTYPE( oWord ) = 'O'
  oWord.Application.Visible = .T.
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform