I know that the new PRO version for PIC can already do this, but I would like to request it for the dsPIC compiler also.
When you have a array of a record structure as below
Code: Select all
type
TComPortInfo = record
MeterMake : word;
BaudRate : word;
Parity : word;
TCPPort : word;
Connected : word;
SNumber : String[17];
end;
var
ComPortInfo : array[0..3] of TComPortInfo;
Code: Select all
var ptr : ^TComPortInfo;
begin
ptr := @ComPortInfo[2];
end;
Code: Select all
var ptr : ^word;
begin
ptr := @ComPortInfo[2].TCPPort;
end;
Anton