Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / сохранить таблицу в формате ЮНИКОД / 2 сообщений из 2, страница 1 из 1
03.08.2004, 16:26:17
    #32633768
Kach
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
сохранить таблицу в формате ЮНИКОД
тут такая беда
нужно таблицу из 10 столбцов сохранить в текстовый файл в формате Юникод
причем разделители столбцов знак ТАБ а строк Ентер
ну с табом допустим непроблема, а в формат Юникод как?
...
Рейтинг: 0 / 0
03.08.2004, 16:47:55
    #32633817
Unicco
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
сохранить таблицу в формате ЮНИКОД
MSDNScripting Runtime Library

CreateTextFile Method

Applies To: FileSystemObject Object | Folder Object

Creates a specified file name and returns a TextStream object that can be used to read from or write to the file.

object . CreateTextFile ( filename [, overwrite [, unicode ]])

Arguments
object Required. Always the name of a FileSystemObject or Folder object.
filename Required. String expression that identifies the file to create.
overwrite Optional. Boolean value that indicates whether you can overwrite an existing file. The value is true if the file can be overwritten, false if it can't be overwritten. If omitted, existing files are not overwritten.
unicode Optional. Boolean value that indicates whether the file is created as a Unicode or ASCII file. The value is true if the file is created as a Unicode file, false if it's created as an ASCII file. If omitted, an ASCII file is assumed.

Пример:
Код: plaintext
1.
2.
Dim fso, tf
Set fso = CreateObject("Scripting.FileSystemObject")
Set tf = fso.CreateTextFile("c:\testfile.txt", True, True)
...
Рейтинг: 0 / 0
Форумы / Microsoft Access [игнор отключен] [закрыт для гостей] / сохранить таблицу в формате ЮНИКОД / 2 сообщений из 2, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]