I want to take 4 Bytes from
Source : Array[0..500] of Byte;
where
c : integer; // Start Point
to
v : LongInt;
but
Move(Source[c], v, 4);
gives me only 1 Byte back. Where is my fault?
Thanks again.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This source works perfectly fine. It may however look like it returns only a byte if only the first byte (the one at index
c) contains a value other than0.This alternative, already suggested by Sertac Akyuz, works fine as well: