NETIMPRESS avant / acorde Support

status function (status_SWX/END_status_SWX) of SWX610 should be written as follows


[Notes]

Normal functions ... xxx_SWX + status_SWX
START type function ... START_xxx_SWX + END_status_SWX

status function must be terminated within the loop process.
status function must not exit the loop process before the end of status function.
normal function and END_status_SWX must not be combined, and vice versa.


[Basic Coding Formats]

  If xxx_SWX = False Then
     ' xxx_SWX cannot be executed error
     ' Exit Sub, exit with goto, etc.
  End If

 ' Perform status processing when function xxx_SWX=True
  Do
    ret = status_SWX(msg)
    If ret = True

        ' status_SWX=True indicates that xxx_SWX process ended normally/error
        ' status_SWX=True not only for normal completion but also for error completion
        ' msg contains the content of normal or error, and appropriate processing is performed according to the value.

        Exit Do  ' Exit Loop only when status_SWX=True
    End If

    ' status_SWX = False is still executing function processing
   ' Do not exit Loop before xxx_SWX processing is finished
   ' Exiting Loop forcibly may cause inconsistency in subsequent function executions

 Loop

update date:2024/02/27

 

Please cooperate with questionnaire cooperation

Was this answer stood to the visitor's role?

 

           

return to a page