Appendix 2
IT Functionlity
MAN_905G_1.16
Page 162
The arguments that can be passed to the SSI function
printf
are:
Argument
Description
InReadSByte(
offse
t)
Reads a signed byte from position
offset
in the IN area
InReadUByte(
offse
t)
Reads an unsigned byte from position
offset
in the IN area
InReadSWord(
offse
t)
Reads a signed word (short) from position
offset
in the IN area
InReadUWord(
offse
t)
Reads an unsigned word (short) from position
offset
in the IN area
InReadSLong(
offse
t)
Reads a signed longword (long) from position
offset
in the IN area
InReadULong(
offse
t)
Reads an unsigned longword (long) from position
offset
in the IN
area
InReadString(
offse
t)
Reads a string (char*) from position
offset
in the IN area
InReadFloat(
offse
t)
Reads a floating point (float) value from position
offset
in the IN area
OutReadSByte(
offse
t)
Reads a signed byte from position
offset
in the OUT area
OutReadUByte(
offse
t)
Reads an unsigned byte from position
offset
in the OUT area
OutReadSWord(
offse
t)
Reads a signed word (short) from position
offset
in the OUT area
OutReadUWord(
offse
t)
Reads an unsigned word (short) from position
offset
in the OUT area
OutReadSLong(
offse
t)
Reads a signed longword (long) from position
offset
in the OUT area
OutReadULong(
offse
t)
Reads an unsigned longword (long) from position
offset
in the OUT
area
OutReadString(
offse
t)
Reads a NULL terminated string (char*) from position
offset
in the
OUT area
OutReadFloat(
offse
t)
Reads a floating point (float) value from position
offset
in the OUT
area
scanf
Syntax:
<?--#exec cmd_argument=’scanf( "ObjName", "format", Arg1, ..., ArgN), ErrVal1, ..., ErrvalN’-
->
This SSI function reads a string passed from an object in a HTML form, interprets the
string according to the specification in format, and stores the result in the OUT area
according to the passed arguments. The formatting of the string is equal to the
standard C function call scanf()
ObjName
- The name of the object with the passed data string
format
- Specifies how the passed string shall be formatted
Arg1 - ArgN
- Specifies where to write the data
ErrVal1 -ErrValN
- Optional; specifies the value/string to write in case of an
error.