Philippe Ranger <.> wrote in message news:7u55ru$✉forums.borland.com...
> <<Jacques: > I would call your function like this: > > Cardin := Card( Digits, sizeof(TDigits) ); > or > Cardin := Card( Digits, 2 ); > > Which means that size is the size in bytes (not in bits) occupied by the > variable. > >> > > The first call format is right, never the second! And yes, the size is in > bytes. There are no part-byte asddresses on the x86 architecture! > > PhR > > >
Philippe
1. I know that there is no bit addressing 2. Both calls are identical in my example ( sizeof(TDigits) IS EQUAL TO 2 ). You need at least 2 bytes to store 10 "boolean" values. 3. My point was: Does the function need the number of bits to check (10) within the bytes received (2) or the number of bytes (2) used to stored the set? 4. I hope this will be a built-in function in future version of Delphi. 5. Thanks for the solution
Jacques