Page 197 of 346 Start Back Next End ZBasic System Library 185 ZBasic Microcontrollers 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