http://www.ClipX.Net [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Return the contents of a byte in memory.
------------------------------------------------------------------------------

 Syntax

        GT_PeekB(<nSegment>,<nOffset>) --> nByte

 Arguments:

      <nSegment> is the segment of the byte in memory.

      <nOffset> is the offset of the byte in memory.

 Returns:

      The numeric content of the specified byte in memory.

 Description:

      GT_PeekB() can be used for getting numeric byte values from
      specific locations in memory.

 Examples:

      // Check if Caps Lock is active.

      nKeyboard := GT_PeekB(0,1047)
      ? "Caps Lock is "+if(GT_And(nKeyboard,64) == 0,"Off","On")

 Source: PEEKBYTE.C

 Author:  David Pearson

See Also: GT_PEEKW()
Online resources provided by: http://www.ClipX.Net --- NG 2 HTML conversion by Dave Pearson