Sure it did. You're asking for 0xff to be shifted left 24 bits. If you look at the result (0xff000000) that is exactly what you got with the value of -16777216.
>Hi Taylor,
>
>Thanks for the reply, but it did not work?
>
>
>>>Hi Everybody,
>>>
>>>I would like to shift a number between 0-255 to the left 24 times. When I do the following for example:
>>>
>>>
? bitlshift(0xff, 24)
>>>
>>>I should get: 4278190080
>>>
>>>However, I get the following number instead:
>>>-16777216
>>>
>>>How can I correct it?
>>>
>>>Thank you,
>>>Ali
>>
>>That is the correct answer. VFP uses signed numbers.
>>
>>? TRANSFORM(-16777216,"@0") && 0xff000000