Validate method – Echelon LNS User Manual
Page 267
LNS Programmer's Guide
253
Figure 10.1 LNS Database Validation Tool
To start a database validation, follow these steps:
1. Open the LNS Database Validation Tool and select the network you want
to validate from the Network to Validate: pull-down list.
2. Optionally click the Repair Database check-box if you want LNS to
attempt to repair the errors it finds.
3. Click
the
Validate button to start the network validation. Status and
result of the validation will appear in the scroll box at the bottom of the
dialog.
Consult the online help for the LNS Database Validation Tool for more detailed
information on how to use the utility.
Validate Method
You can also use your own LNS application to perform database validations. The
Validate() method has been added to the Network object for Turbo Edition. When you
call Validate() on a network, LNS will perform a database validation on its network
database. The method provides options you can use to specify whether or not LNS will
attempt to repair any of the errors it finds.
When the validation has completed, the method returns a DatabaseValidationReport
object that contains information summarizing the results of the validation. This is the
same set of data that would be returned if you used the LNS Database Validation Tool to
validate the network database, including descriptions of all the errors it encountered, all
the errors that were repaired as part of the validation procedure, and all the errors that
were not repaired as part of the validation procedure.