Path: utzoo!attcan!uunet!mcsun!isgate!krafla!binni From: binni@rhi.hi.is (Brynjolfur Thorsson) Newsgroups: comp.lang.pascal Subject: Dynamic arrays in TP5.0 Message-ID: <1831@krafla.rhi.hi.is> Date: 7 Jul 90 15:40:37 GMT Organization: University of Iceland Lines: 35 Hi there. I am trying to use dynamic arrays in my TP5.0 program but am having a hard time. I want to be able to do things like they are done in C, e.g. *(x + 10) = 100.5 but I have not found a way to do it. Below is a short program demonstrating what I want to do, but I have no idea, how to make GetVal and PutVal. If you have suggestions for me I would appreciate it. I can't believe that this is impossible in TP. *************************************************** Program dynamic; Var y : ^Real; x : Real; Begin GetMem(y, 10 * SizeOf(Real)); PutVal(y, 5, 12.34); x := GetVal(y, 3); End. ************************************************** I hope that this is not to confusing. Thanks in advance Brynjolfur. -- ************************ Brynjolfur Thorsson Internet: binni@rhi.hi.is Science Institute University of Iceland UUCP: ...!mcvax!hafro!rhi!binni