On Wed, Jun 10, 2009 at 9:25 PM, Tracy Pearson<[email protected]> wrote:
> VFP 9 has
>   BitLShift() and BitRShift()
>   CToBin/BinToC have the cFlag "R" - Reverses the binary expression.
>
>
> But your solution works, I'm sure!

Yes, you're right.

However, reading the docs you don't need the R:

"This also means that the most significant byte is first. For Win32
API routines on an Intel platform, the architecture follows the
little-endian rule where the least significant byte is stored first
(memory location with lowest address). The 'R' and 'S' settings allow
you to use BINTOC( ) to work more efficiently with routines that use
structs."

So:
BINTOC(nLen,"2")

Would be sufficient.

I learn something new about vfp everyday!

-- 
Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to