E5071C
1282
End Sub
Receiving
The procedure corresponding to receiving ASCII format messages in
communication is EnterSiclLan. EnterSiclLan uses the ivscanf function of
SICL to receive a message in ASCII format and store it into the output
variable. The ivscanf function takes the session information output from
the iopen function, the format for output, and the data to be output as its
parameters.
Syntax
Status = ivscanf(addr,fmt,ap)
Variable fmt
Description
Format for output
(input)
Data type
Character string
type
ap
Description
Data to be output
(output)
Data type
Character string
type
For information on the variable (Status) and the variable (addr), refer to
Variable.
In Visual Basic, variables must be declared as a fixed-length string when
receiving string data using the ivscanf function.
EnterSiclLan
Sub EnterSiclLan(addr As Integer, Query As String)
Dim Status As Integer
Dim actualcnt As Long
Dim res As String * 256