Re: [fpc-pascal] How to initialize a Text variable?

2008-03-17 Thread Tomas Hajny
On Sun, March 16, 2008 12:14, Felipe Monteiro de Carvalho wrote: On Sun, Mar 16, 2008 at 8:16 AM, Michael Van Canneyt [EMAIL PROTECTED] wrote: Assign yyoutput to a dummy stream, which simply skips output. Could you explain better how can this be implemented? The only think I know about

RE: [fpc-pascal] How to initialize a Text variable?

2008-03-17 Thread Sam Liddicott
[EMAIL PROTECTED] Sent: 17 March 2008 07:17 To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] How to initialize a Text variable? On Sun, March 16, 2008 12:14, Felipe Monteiro de Carvalho wrote: On Sun, Mar 16, 2008 at 8:16 AM, Michael Van Canneyt [EMAIL

Re: [fpc-pascal] How to initialize a Text variable?

2008-03-16 Thread Wanderlan Santos dos Anjos
Hello Felipe, Yes, Text is the same as TextFile. Use: Rewrite for create a new file for writing. Reset for open a file already created for reading. Append for open a file already created for writing. -- Att, Wanderlan Santos dos Anjos (061) 3345-5496; 9133-3804

Re: [fpc-pascal] How to initialize a Text variable?

2008-03-16 Thread Felipe Monteiro de Carvalho
Ok, thanks, the initial problem was that the filename calculation logic was wrong. thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to initialize a Text variable?

2008-03-16 Thread Felipe Monteiro de Carvalho
Is it possible to set a Text file to nowhere? I mean, lexlib has a textfile called yyoutput, where it will throw output. I don't want to have this output at all, and lexlib doesn't allow me to choose that. yyoutput is declared simply as Text I would initially try setting it to zero, but that's

Re: [fpc-pascal] How to initialize a Text variable?

2008-03-16 Thread Michael Van Canneyt
On Sun, 16 Mar 2008, Felipe Monteiro de Carvalho wrote: Is it possible to set a Text file to nowhere? I mean, lexlib has a textfile called yyoutput, where it will throw output. I don't want to have this output at all, and lexlib doesn't allow me to choose that. yyoutput is declared simply

Re: [fpc-pascal] How to initialize a Text variable?

2008-03-16 Thread Felipe Monteiro de Carvalho
On Sun, Mar 16, 2008 at 8:16 AM, Michael Van Canneyt [EMAIL PROTECTED] wrote: Assign yyoutput to a dummy stream, which simply skips output. Could you explain better how can this be implemented? The only think I know about streams is TStream. thanks, -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] How to initialize a Text variable?

2008-03-16 Thread Michael Van Canneyt
On Sun, 16 Mar 2008, Felipe Monteiro de Carvalho wrote: On Sun, Mar 16, 2008 at 8:16 AM, Michael Van Canneyt [EMAIL PROTECTED] wrote: Assign yyoutput to a dummy stream, which simply skips output. Could you explain better how can this be implemented? The only think I know about

[fpc-pascal] How to initialize a Text variable?

2008-03-15 Thread Felipe Monteiro de Carvalho
Hello, I have the following variable that I need to initialize: yyinput: Text; I searched, but I can't find anything that explains what this is, or how to initialize it. Is the Text type the same as TextFile? I would like to set this variables to the contents of a file, so I tryed the

Re: [fpc-pascal] How to initialize a Text variable?

2008-03-15 Thread Jonas Maebe
On 15 Mar 2008, at 12:34, Felipe Monteiro de Carvalho wrote: I have the following variable that I need to initialize: yyinput: Text; I searched, but I can't find anything that explains what this is, or how to initialize it. Is the Text type the same as TextFile? Yes (although more the