Appendix 2
The arguments that can be passed to the SSI function printf are:
Argument
InReadSByte(offset)
InReadUByte(offset)
InReadSWord(offset)
InReadUWord(offset)
InReadSLong(offset)
InReadULong(offset)
InReadString(offset)
InReadFloat(offset)
OutReadSByte(offset)
OutReadUByte(offset)
OutReadSWord(offset)
OutReadUWord(offset)
OutReadSLong(offset)
OutReadULong(offset)
OutReadString(offset)
OutReadFloat(offset)
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
format
Arg1 - ArgN
ErrVal1 -ErrValN
172
Description
Reads a signed byte from position offset in the IN area
Reads an unsigned byte from position offset in the IN area
Reads a signed word (short) from position offset in the IN area
Reads an unsigned word (short) from position offset in the IN area
Reads a signed longword (long) from position offset in the IN area
Reads an unsigned longword (long) from position offset in the IN area
Reads a string (char*) from position offset in the IN area
Reads a floating point (float) value from position offset in the IN area
Reads a signed byte from position offset in the OUT area
Reads an unsigned byte from position offset in the OUT area
Reads a signed word (short) from position offset in the OUT area
Reads an unsigned word (short) from position offset in the OUT area
Reads a signed longword (long) from position offset in the OUT area
Reads an unsigned longword (long) from position offset in the OUT
area
Reads a NULL terminated string (char*) from position offset in the
OUT area
Reads a floating point (float) value from position offset in the OUT
area
- The name of the object with the passed data string
- Specifies how the passed string shall be formatted
- Specifies where to write the data
- Optional; specifies the value/string to write in case of an error.
IT Functionlity