imho.ws
IMHO.WS  

Вернуться   IMHO.WS > Компьютеры > Программирование
Опции темы
Старый 22.11.2004, 17:42     # 1
Rivs
Guest
 
Сообщения: n/a

Перевод ошибки

Может не в тему, но.. Используется программа, для работы с электронной почтой в системе REX400. Стала вылетать ошибка Run-time error '52'. Найдено описание ошибки-помогите с переводом:

Bad file name or number (Error 52)
A statement refers to a file with a file number or file name that is:

An invalid name or number
Not specified in the Open statement
Specified in an Open statement, but has since been closed
Out of the range of file numbers (1-511)
In Microsoft Windows, use the following conventions for naming files and directories:

The name of a file or directory can have two parts: a name and an optional extension. The two parts are separated by a period, for example, Myfile.new.
The name can contain up to eight characters, and the extension can contain up to three characters.
The name must start with either a letter or number. It can contain any uppercase or lowercase (file names are not case-sensitive) characters except the following:

Character Description
----------------------------------

. Period
" Quotation mark
' Single quotation mark (apostrophe)
+ Plus sign
/ Slash
\ Backslash
[ ] Brackets
: Colon
; Semicolon
| Vertical bar (pipe)
= Equal sign
, Comma
The name should not contain any spaces. The following names are reserved and can't be used for files or directories: CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, and NUL. For instance, if you try to name a file PRN in an Open statement, the default printer will simply become the destination for Print #, and Write # statements directed to the file number specified in the Open statement.
The following are examples of valid Microsoft Windows file names:

LETTER.DOC
MEMO.TXT
BUDGET.92
12345678.901
2NDTRY.RPT
On the Macintosh, a file can have any character except the colon (, and may contain spaces. Null characters [Chr(0)] are not allowed in any file names.
 
Старый 22.11.2004, 21:55     # 2
kot_
Junior Member
 
Аватар для kot_
 
Регистрация: 19.11.2004
Адрес: Dnepropetrovsk
Пол: Male
Сообщения: 67

kot_ Путь к славе только начался
Не корректное имя или номер.
Существующая ссылка на номер или имя файла :
1. Неверное имя или номер файла
2 Не определена операция Открыть
3 Определена операция Открыть но с тех пор файл был закрыт
4. Превышает диапазон количества (повидимому макимального количества открытых) файлов. (или превышает диапазон максимального количества открытых файлов)
А далее следует рассказ какие символы не допустимы в именах файлов и примеры допустимых имен.
Кроме того категорически не рекомендуется использовать в именах файлов пробелы а так же файлы с именами CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, and NUL.
Проблема скорее всего связана с наличием в имени файлов пробела, если естественно соблюдены 4 указанных выше условия.
kot_ вне форума  

Опции темы

Ваши права в разделе
Вы НЕ можете создавать новые темы
Вы не можете отвечать в темах.
Вы НЕ можете прикреплять вложения
Вы НЕ можете редактировать свои сообщения

BB код Вкл.
Смайлы Вкл.
[IMG] код Выкл.
HTML код Выкл.

Быстрый переход


Часовой пояс GMT +4, время: 22:09.




Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.