| Function | wd_closedocument | ![]() |
Closes the specified document or the active document if the specified document dosen't exist
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