Thema: Delphi array of pointers

Einzelnen Beitrag anzeigen

Benutzerbild von sk.Silvia
sk.Silvia

Registriert seit: 8. Feb 2006
Ort: Slovenia
90 Beiträge
 
Delphi 7 Personal
 
#1

array of pointers

  Alt 24. Jun 2006, 14:57
hi there, i want to make an array of pointers as follows

Delphi-Quellcode:
type pointer_array=array[0..50] of pointer;
var Pointers:pointer_array;

      procedure HandleInput(Message1:string; var ExportVar:real);
          begin
          inc(Step_input);
          Pointers[Step_input]:=ExportVar; //DONT WORK
          Pointers[Step_input]:=^ExportVar; //DONT WORK
          ^Pointers[Step_input]:=^ExportVar; //DONT WORK
          //unimportant commands here
          end;
what i want to do, is to store a pointer to each variable imported to procedure
(HandleInput('0', CXC)-> ExportVar=CXC -> i will store a pointer to CXC)
how to do it?

thanks
  Mit Zitat antworten Zitat