<< Prev        Next >>

ID : 363

In

Function

To assign an I/O variable value to the variable.

Syntax

In variable name = I/O variable name

Guaranteed Entry

Variable name
Designate a variable name whose I/O type value can be entered.
I/O variable name
Designate an I/O type variable name.

Description

Assign a specified I/O type variable value to the designated variable.

Related Terms

DefIO, Out, Set, Reset

Attention

-

Example

'!TITLE "Data I/O from I/O Port"
' Data I/O of I/O port "240"
Sub Sample_In

  Dim aaa As Integer

  ' Assign data of I/O port "240" to aaa
  In aaa = IO[240]

  ' Output data of aaa from I/O port "240"
  Out IO[240] = aaa

  ' Display data of I/O port "240" on the message output window
  PrintDbg aaa

End Sub

ID : 363

<< Prev        Next >>