ComNewLineProgram

Prev Next Home Home Table Of Contents Index

ComNewLineProgram : Procedure

ComNewLineProgram is a procedure variable that if set to point to a procedure is executed every time a new line is received at the modem.


Example:
ComNewLineProgram = Loc ExamineLastLine

Procedure ExamineLastLine var St P P = pos('Time Sync:',ComLastLine) if P = 0 then Return St = mid(ComLastLine,P + 11,17) ;read Date and Time NovServerTime = TimeOf(St) EndProc

In this example, ExamineLastLine is executed once each new line and is scaned for the word "Time Sync:". If the word is found it sets the server time to the value following that word.

Category: Modem

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home