Help please ... convert byte to long
PaulF
Posts: 62
Hi all,
i am having great difficulty with this little matter. I am reading a byte from a file. This byte needs to be converted to a long to allow further calculations. Is there a simple way to convert from byte to long?
Any assistance is greatly appreciated.
Paul
i am having great difficulty with this little matter. I am reading a byte from a file. This byte needs to be converted to a long to allow further calculations. Is there a simple way to convert from byte to long?
Any assistance is greatly appreciated.
Paul
Comments
longvar := bytevar
You can't 'convert' a byte to long if the byte is initialized as a byte. You could just use a long in the first place though, then it is already a long, no conversion needed.
that works. It's been a very long day and \i must be getting tired.