Re: [fpc-pascal] terminal width/height

2005-05-14 Thread Michael Van Canneyt
On Fri, 13 May 2005, David Emerson wrote: > Hi all, > > Is there a function to query the terminal width and height, as a number of > characters? > > For example, in windows 98, the terminal is always 80 characters wide, but > the height varies; in linux, the height and width can both change,

[fpc-pascal] ReadLn issues a warning

2005-05-14 Thread Yiannis Dondos
Hello everybody, could you please tell me if there is something wrong with the following code: program test1; var f: Text; i: Integer; s: ShortString; begin Assign (f, 'test.dat'); Reset (f); ReadLn (f, i); ReadLn (f, s); // Warning: Variable not initialized

Re: [fpc-pascal] ReadLn issues a warning

2005-05-14 Thread Michael Van Canneyt
On Sat, 14 May 2005, Yiannis Dondos wrote: > Hello everybody, > > could you please tell me if there is something wrong with the following > code: > > program test1; > > var >f: Text; >i: Integer; >s: ShortString; > > begin > Assign (f, 'test.dat'); > Reset (f); > >

Re: [fpc-pascal] ReadLn issues a warning

2005-05-14 Thread Peter Vreman
At 12:12 14-5-2005, you wrote: On Sat, 14 May 2005, Yiannis Dondos wrote: > Hello everybody, > > could you please tell me if there is something wrong with the following > code: > > program test1; > > var >f: Text; >i: Integer; >s: ShortString; > > begin > Assign (f, 'test.dat'); >

[fpc-pascal] FindPart function - Help Docs say...

2005-05-14 Thread L505
>function FindPart(const HelpWilds: String; const InputStr: String):Integer;" According to the function syntax, it returns an integer... >Description > >FindPart searches the string InputStr and returns the first string that matches the wildcards specification in HelpWilds . If no >match is foun

Re: [fpc-pascal] FindPart function - Help Docs say...

2005-05-14 Thread L505
| FindPart searches the string InputStr and returns the first string that matches | the wildcards specification in HelpWilds . If no match is found, and empty string | is returned. valid wildcards are the "?" (question mark) and "*" (asterisk) | characters." To answer my own question ;-) here i