ph_combufferreset PowerHome formula function
Description
Resets the buffercount and bufferptr variables for the specified COM controls incoming buffer.
Syntax
ph_combufferreset ( comnum )
Argument Description
comnum The number of the COM control you are referencing. Valid values are 1 thru 5.
Return value
Integer. Returns 0 if successful. Returns 1 if a comnum < 1 or > 5 is specified. Returns 2 if the specified COM control is not valid. This function effectively empties the incoming buffer for the specified COM control without having to read all unread characters.