Re: [fpc-pascal] TReader Class

2010-02-15 Thread fpc_ml1
Just interested in this...
 can you not use writestring, readstring?
i know code is different but even on delphi they suggest you use
writestring and readstring.
readvalue is published.
writevalue is not published... since you supposedly should be using
existing routines to write values.

if you have a user-defined type then perhaps your own extension using
writebinary with a pre-code.

--- dale


Justin Smyth wrote:
> Hopefully someone can point me to the right direction here, if this
> isnt the  right place to ask feel free to point to where i can ask ...
>  
> The FPC Class for TReader is missing some procedures as defined in the
> delphi class of the same name
>  
>  
> writestr , readstr , writevalue and readvalue.
>  
> is there something else that i could use which would do the job ? i
> dont want to create a inhertied class on TReader and add the missing
> bits because certian functions need to be of TReader Not
> TReader ie Filer.DefineProperty which has param as
> TReaderProc & TWriterProc which both point to   TReaderProc =
> procedure(Reader: TReader) of object &   TWriterProc =
> procedure(Writer: TWriter) of object; which are defined in
> classesh.inc which is part of the RTL )
>  
> if i am to add this to the RTL Definition of TReader i'd need to
> recompile the source to FPC ( which i have ) but not sure how i do this.
>  
>  
> Justin Smyth
>

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] command line option to specify record alignment

2010-02-15 Thread Bruce Bauman
I've read through the documentation several times and cannot figure this
out. The documentation is pretty unclear on this.

 

I want a command line equivalent to {$PACKRECORDS 1}. Is there a way to
do this via the command line?

 

Thanks.

 

-- Bruce

CONFIDENTIALITY NOTICE: This e-mail is confidential and intended
solely for the use of the individual or entity to which it is addressed.  If
you are not the intended recipient, be advised that you have received 
this email in error and that any use, dissemination, forwarding, printing 
or copying of this e-mail is strictly prohibited. If you received this e-mail
in error, please delete it from your computer and contact the sender.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TReader Class

2010-02-15 Thread Michael Van Canneyt



On Sat, 13 Feb 2010, Justin Smyth wrote:


Hopefully someone can point me to the right direction here, if this isnt the  
right place to ask feel free to point to where i can ask ...

The FPC Class for TReader is missing some procedures as defined in the delphi 
class of the same name


writestr , readstr , writevalue and readvalue.


? Why would you need writestr in a reader ?

Secondly, if I look at TReader, I see:

function ReadString: string;
function ReadWideString: WideString;
function ReadUnicodeString: UnicodeString;
function ReadValue: TValueType;

So what is the definition of your missing read calls ?


Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] command line option to specify record alignment

2010-02-15 Thread Jonas Maebe

On 15 Feb 2010, at 21:36, Bruce Bauman wrote:

> I want a command line equivalent to {$PACKRECORDS 1}. Is there a way to
> do this via the command line?

No, there isn't.


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Printing of FPC program listing

2010-02-15 Thread James Gibbens
Hallo All,
Thank you for the answers and advice I have received. Three new issues if you 
good people don't mind.
1. I want to print my program listing by using the print option in the File 
drop-down menu (Free Pascal IDE window). I click on the Print option but 
nothing happens - the printer is on and it does print. How can I fix that?
2. The window of the Free Pascal IDE is only 21 lines high. Is it possible to 
show more lines on the computer screen? How can I do that?
3. Is it possible to get FPC to use a comma (,) in stead of a period (.) as the 
separator between integer and fraction? The way they do it in Europe?
Thank you for the answers.
James Gibbens.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal