Functionwd_closedocument

Defined in: pbwword

public subroutine wd_closedocument (string key, long i_savechanges)

Comment:
Closes the specified document or the active document if the specified
document dosen't exist


Script:
public subroutine wd_closedocument (string key, long i_savechanges);

IF (i_saveChanges < 0) or (i_saveChanges > 2) THEN
	MessageBox("Error", "Invalid argument value")
	return
END IF
i_PBWWord.CloseDocument(key,i_saveChanges)
end subroutine