Scans or loads a rules file from a client computer.
LoadCalcRules returns Booleans that indicate whether validation errors, validation warnings, and validation information were included in the log file.
To validate whether rules in a file violate the referential integrity of any intercompany transactions, use LoadCalcRules2.
You must call SetSession before calling LoadCalcRules. SetSession points to the application for which rules are being loaded. |
<HsvRulesLoadACV>.LoadCalcRules bstrClientFilename, bstrLogFilename, vbScanOnly, pvbErrorsWereFound, pvbWarningsWereFound, pvbInfoWasProvided
The following example loads rules into an application.
Dim cHsvRulesLoadACV As HsvRulesLoadACV, bErr As Boolean Dim bSession As Boolean, bWarn As Boolean, bInfo As Boolean Set cHsvRulesLoadACV = New HsvRulesLoadACV bSession = cHsvRulesLoadACV.SetSession(m_cHsvSession, _ HFM_LANGUAGE_INSTALLED) If bSession = True Then cHsvRulesLoadACV.LoadCalcRules "c:\Acme\myApp.rle", _ "c:\Acme\myApp.log", False, bErr, bWarn, bInfo End If