LibraryItemDialog is a private function of the LitCritC.Critique class. Its purpose is to determine whether to search the FmLib database for the title of the item about to be reviewed. The answer to this question can come from either of two places: a Windows® registry setting or the user's answer to the question posed in the Add Critique to Library dialog box.
First, this function calls the Visual Basic® GetSetting function to check the Windows registry:
setting = GetSetting(APPNAME, SECTION, KEY)
The constants APPNAME, SECTION, and KEY have been set to the values "LitCrit", "Enhanced", and "ShowDialog" respectively, and point the function to the right key in the Windows registry of the computer on which the LitCrit application was installed. If that key is empty, the Add Critique to Library dialog box is displayed. The user's response to the following question:
str = str & "Do you want to search for this title in the" & vbCrLf
str = str & "library's database?"
is saved into the frmChooseSetting.Response variable, and returned when the LibraryItemDialog function ends. Before the function ends, it lets the user select a check box to save the response as a default for the future. That is, when the user opens a critique the next time, the registry key will answer whether to search the FmLib database. If the check box is selected, the user's search/no-search response is saved to the registry with the Visual Basic SaveSetting function:
SaveSetting APPNAME, SECTION, KEY, frmChooseSetting.Response
For more information, see LibraryItemDialog Method.