|
| OUTPUT TO TXT - help |
 |
Tue, 1 Jan 2008 11:55:44 -0000 |
I have a program that output to a txt file several lines of text.
I note that each 78 lines I have a stranger character in a beginig of the
line.
Can somebody help me?
Thank you
Mario
|
| Post Reply
|
| Re: OUTPUT TO TXT - help |
 |
Tue, 1 Jan 2008 12:07:41 -0000 |
I thing this is something about page break.
If I made a Copy and Past to Word from the txt file, I note a New page where
is this strange character and NO character.
What to do to have no Page break indication?
thank you
Mario
"Jose mario" <geral@promecel.pt> escreveu na mensagem
news:fld9ou$m6b$1@ipx22096.ipxserver.de...
>I have a program that output to a txt file several lines of text.
> I note that each 78 lines I have a stranger character in a beginig of the
> line.
>
> Can somebody help me?
> Thank you
> Mario
>
|
| Post Reply
|
| Re: OUTPUT TO TXT - help |
 |
Wed, 2 Jan 2008 17:05:07 +0100 |
"Jose mario" <geral@promecel.pt> a écrit dans le message de
news:
fld9ou$m6b$1@ipx22096.ipxserver.de...
>I have a program that output to a txt file several lines of text.
> I note that each 78 lines I have a stranger character in a beginig of the
> line.
>
> Can somebody help me?
> Thank you
> Mario
>
' First sorry for my English (i'm just a little frog!)
'
' IF you use REPORT TO feel your ASCII FILE ... ?
' just try this....
'
'
SUB main()
REM FACDOS is a file in the current directory just for REPORT to work (more
records than number of lines on printer >80)
OPEN FILE SHARE ,0"FACDOS"
CALL Test01()' Don't work
CALL Test02()' OK
END SUB
' First example , the ASCII file 'TEST.SBT' as a special caracter at ligne
number 50 (TAB?)'
' (depend of your page length)
' so .. don't work
'
'
SUB Test01()
DIM s$,pte%%
pte%% = 1
REPORT
AFTER SELECT
? STR$ (pte%%,"0000") + " Un texte quelconque à répéter x
fois ..."
pte%% = pte%% + 1
END SELECT
SET QUERY ON
SET QUERY LOCK OFF
SELECT ;
ORDER REPORT alias.FACDOS
TO "TEST.SBT"
END SELECT
CLOSE OUTPUT
LOAD TEXT "TEST.SBT"
EDIT TEXT
END SUB
'
' The ASCII file is not declared in select/ end select section
'
SUB Test02()
DIM s$,pte%%
pte%% = 1:s$ = CHR$ (10) + CHR$ (13)
REPORT
OPEN "TEST.SBT" FOR OUTPUT ' *********************
AFTER SELECT
? STR$ (pte%%,"0000") + " Un texte quelconque à répéter x
fois ..."
pte%% = pte%% + 1
END SELECT
SET QUERY ON
SET QUERY LOCK OFF
SELECT ;
ORDER REPORT alias.FACDOS
END SELECT
CLOSE OUTPUT
LOAD TEXT "TEST.SBT"
EDIT TEXT
END SUB
|
| Post Reply
|
| Re: OUTPUT TO TXT - help |
 |
Thu, 03 Jan 2008 21:53:06 +000 |
Jose mario wrote:
> I thing this is something about page break.
> If I made a Copy and Past to Word from the txt file, I note a New page
> where is this strange character and NO character.
> What to do to have no Page break indication?
> thank you
Don't use OUTPUT TO unless you want to have printer formating. Instead,
use OPEN ... FOR OUTPUT.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|