Relative Content

Tag Archive for pointersdelphirecordpascal

Record’s field as formal parameter for procedure for Delphi

I want to create a procedure witch makes some manipulation with variable record type. Globally, I have a array of record. I want to sort the array, but by record’s field. I want to pass the field as procedure’s parameter. And the question is: how to pass field of record as parameter. For example: f2 – function, which returns field’s value and the field is offset.