MemIn Method

Description
Returns the status of the specified memory I/O byte port. Each port contains 8 memory I/O bits.

Syntax
Function MemIn (PortNumber As Integer) As Integer
Function MemIn (Label As String) As Integer

Parameters

  • PortNumber
    An integer indicating the memory I/O port
  • Label
    A string expression indicating the memory I/O byte label.

Return Value
Integer containing the port value.

See Also
In Method, InBCD Method, MemOut Method, MemSw Method, Sw Method, Off Method, On Method, Oport Method

MemIn Example
VB Example:

data = m_spel.MemIn(1)  

C# Example:

data = m_spel.MemIn(1);