>PS: Type("loWord") doesn't return a boolean result.
Are you shure?
Try
#define type mytype
?type('_screen')
function mytype
lpara tvVal
#undefine type
return type(tvVal)='O'
endfunc
just kidding
The comp as other problems with word to, so he could not create a new document via automation - from time to time. This one could not be automation.
Agnes
>I hope reinstallation fixes. I still believe it is a security issue (either DCOM or policies).
>PS: Type("loWord") doesn't return a boolean result.
>
If !TYPE("loWord") = 'O' or ISNULL(loWord)) THEN
>
>and one final wild thought. It creates the word object as it should, everything is fine but that is loWord variable name that is the problem (having a field name in current wrokarea with same name - m.loWord would do then).
>
>Cetin
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]