156 of 286
142 MidWord Type Function returning UnsignedInteger Invocation MidWord(val) Parameter Method Type Description val ByVal numeric The value of which the middle word is desired. Discussion This function returns the middle two bytes of a 4-byte value. If the specified value is a Byte the return value will be zero. If the specified value is contained in two bytes, the return value will have zero in the high byte. Compatibility This function is not available in BasicX compatibility mode. See Also HiByte, HiWord, LoByte, LoWord