Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
Пробую командой SAY в Windows кодировке полдучается( ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 13:31 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
Формируй данные в стринговой переменной, потом CPCONVERT() и STRTOFILE() ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 13:35 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
CPCONVERT(nCurrentCodePage, nNewCodePage, cExpression) nNewCodePage должен быть = 866? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:00 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
Если хочешь в DOS-кодировке, то да. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:03 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
напиши пожалйста пример, не успеваю разобраться ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:10 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
ЕленаШнапиши пожалйста пример, не успеваю разобраться Код: plaintext 1. 2. 3. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:15 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
Спасибо Алекс, работает как надо, но только для одной строки , потом перезаписывает файл, как все вывести (в хэлпе команду StrToFile Не нашла) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:24 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
А Фокс то у тебя какой? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:26 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
Фокс то 6-й , хелп какой нашла стоит ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:29 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
Точно не помню, но по-моему в 6-ке эта ф-ция уже была. Ты спробую сам код, если не выругается то все ОК. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:34 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
Writes the contents of a character string to a file. STRTOFILE(cExpression, cFileName [, lAdditive | nFlag]) Return Value Numeric; the number of bytes written to the file. Parameters cExpression Specifies the character string that is written to the file. cExpression can be a literal character string, an expression that evaluates to a character string, or a character type variable, array element, or field. cFileName Specifies the name of the file to which the character string is written. Include a path with the file name if the file is in a directory other than the current default directory. If the file you specify does not exist, Visual FoxPro automatically creates it. lAdditive (for backward compatibility) Specifies whether the character string is appended to the end of the file. If lAdditive is true (.T.), the character string is appended to the end of the file. If lAdditive is false (.F.) (the default), the file is overwritten with the character string. You are asked if you want to overwrite an existing file if SET SAFETY is set to ON. If SET SAFETY is set to OFF, the file is overwritten without warning. nFlag In this version of Visual FoxPro, you can use the nFlag parameter instead of lAdditive which enables you to also chose to write UTF-8 and Unicode Byte Order Marks. The following table describes the valid nFlag values. nFlag Bit Description 0 (default) 0000 The file is overwritten with the character string (formerly lAdditive=.f.) 1 0001 The string is appended to the end of the file (formerly lAdditive=.t.). 2 0010 Write Unicode Byte Order Mark (BOM) FF FE at the beginning of file. cExpression is assumed to be UNICODE, therefore no translation is performed. The file is overwritten 4 0100 Write UTF-8 Byte Order Mark (BOM) EF BB BF at the beginning of file. cExpression is assumed to be UTF-8, therefore no translation is performed. The file is overwritten. Remarks An nFlag value of 3 or 5 is not valid. You cannot attempt to write a new Byte Order Mark if nFlag bit 1, Additive, is set. Unlike earlier versions of Visual FoxPro, STRTOFILE( ) opens a file in Shared rather than Exclusive mode. This is useful when multiple servers attempt to simultaneously write to the same file. Because of this change, you might not need to check for STRTOFILE( ) to return 0 (failure to open a file). ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:40 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
Функция прокатывает, но как я уже сказала выше записывается одна строка затем файл перезаписывается, и в результате там одна последняя строка ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:41 |
|
||
|
Выгрузка данных в TXT файл в кодировке DOS
|
|||
|---|---|---|---|
|
#18+
См. пост выше, третий параметр ф-ции в .T. и будет дозаписывать. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.03.2005, 14:43 |
|
||
|
|

start [/forum/topic.php?fid=41&msg=32978735&tid=1594569]: |
0ms |
get settings: |
10ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
70ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
| others: | 253ms |
| total: | 403ms |

| 0 / 0 |
