BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pointre Arithmetics

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Amir
Guest





PostPosted: Sun Aug 10, 2008 3:25 pm    Post subject: Pointre Arithmetics Reply with quote



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
Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.