Thread View: borland.public.delphi.vcl.components.using.general
1 messages
1 total messages
Started by Amir
Sun, 10 Aug 2008 15:27
Pointer Arithmetics
Author: Amir
Date: Sun, 10 Aug 2008 15:27
Date: Sun, 10 Aug 2008 15:27
18 lines
1759 bytes
1759 bytes
I have an array in the memory and I just know the first element of this array as a variable and its data type, as mentioned in the help document I should can use the pointers arithmetic capabilities like addition and subtraction for accessing other elements of my array but I can't use these functions. for example in this case: var P1,P2: PInteger; begin New(P1); P2:= P1 + 1; end; the compiler would say " E2015 Operator not applicable to this operand type " What is my problem? Is there any way? Thanks
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads