if EthType < StrToInt('$05DC') then EthType := 0; // does'nt work!!

From: Kris Leech (krisleech_at_email.com)
Date: 08/31/04


Date: Tue, 31 Aug 2004 13:45:09 +0000 (UTC)

Can anyone tell me why this does'nt work:

if EthType < StrToInt('$05DC') then EthType := 0;

05DC (hex) = 1500 (dec)
and ethtype = 0800 (hex) = 2048 (dec)
however ethtype gets set to zero even though ethtype is greater than $05DC.

Cheers Kris