Returns the rules that have been loaded into an application. The rules are returned as an array of bytes.
<HsvCalculate>.GetVBScriptRules pvarabRules, pbRulesExistThe following example outputs an application’s rules to a text file. The array of bytes returned by GetVBScriptRules is converted to a String and inserted into a file with various Visual Basic methods.
Dim cCalc As HsvCalculate, vaRules As Variant
Dim bRulesExist As Boolean, iFile As Integer
Set cCalc = m_cHsvSession.Calculate
cCalc.GetVBScriptRules vaRules, bRulesExist
If bRulesExist = True Then
iFile = FreeFile
Open "c:\temp\appRules.rle" For Output As #iFile
Print #iFile, StrConv(CStr(vaRules), 64)
Close #iFile
End If