Try
? CTOBIN(BinaryValue, '2RS')
>
>I need to convert a binary value stored in a old dbf. It was stored in binary and if I used the function bin2L it works but I don't know how to use the same function in visual fox.
>
>I found in the internet a function to restore from 32 bits, however I need to restore this value that was stored with 16 bits. Does anyone know how can I do it?
>
>Thanks in Advance
>Roberto
--sb--