>I have been trying to make calls to Word97 with limited success with the following code:
>
>oWord = NewObject( "Word.Application" )
>oWordDoc = NewObject( "Word.Document" )
>
>oWord may return an invalid object if Word is for some reason already running.
>
>What is the most bullet proof method to call and validate the proper instantiation of Word 97?
>
>Thanx
before executing, you could:
if vartype(oWord) = "O" and !isnull(oWord)
if oWord.Name = "Microsoft Word"
else
endif
else
oWord = NewObject( "Word.Application" )
endif
Mark McCasland
Midlothian, TX USA