Язык WordBasic - практический подход


Функция DocumentProtection() - часть 6


Print Size; " байт"..............................................................................................................................
Close #1.................................................................................................................................................
Sub MAIN................................................................................................................................................
On Error Goto errors.................................................................................................................
Open "C:\WINWORD\README.DOC" For Input As #1.........................................................
Close #1.................................................................................................................................................
FileOpen .Name = "C:\WINWORD\README.DOC".................................................................
Errors:..................................................................................................................................................
If err = 55 Then MsgBox "File Already Open".......................................................................
Close #1.................................................................................................................................................
End Sub..................................................................................................................................................
FileNew – создает новый документ или шаблон...............................................................
Синтаксис:...........................................................................................................................................
Примеры:................................................................................................................................................
Создать новый документ на базе шаблона Memo1.


Начало  Назад  Вперед