Re: [fpc-pascal] array & record output/input

2010-06-02 Thread Vannus
On 2 June 2010 11:34, spir wrote: > Hello, > > > Is there a (builtin, simple) way to output the content of an array or of a > record. Something like arrayToStr / recordToStr, that would return a normal > form similar to the literal notation used for intialisation? If no, is there > a way to write

Re: [fpc-pascal] array & record output/input

2010-06-02 Thread Graeme Geldenhuys
Op 2010-06-02 12:34, spir het geskryf: > no, is there a way to write custom funcs for this purpose (meaning > access at runtime to types of items/fields). I constantly need such a > feature. writeln(recordTostr(aPosition)) // --> (x:1 ; y:2 ; z:3) If you used tiOPF based objects, then I could hav