Hi,
Here is the LHD code
cnnDB.Close
Call DisplayError (1, lang (cnnDB, “Some Literal”))
Now when the cnnDB is closed how can Lang function use the cnnDB, is this a bug or was it put purposefully and something that I missed.
I changed to
Dim someLiteral
someLiteral = lang (cnnDB, “Some Literal”)
Call DisplayError (1, someLiteral)
And in /helpdesk/public.asp I changed it to
Function DisplayError (eType, component)
Dim cnnDB
cnnDB = CreateCon
:
Select Case eType
Case 1
Response.Write . . . & lang (cnnDB, “isarequiredfield”) & “. . .
Now use of cnnDB in the call of lang (cnnDB, . . .) with out creating one, from the function DisplayError, I think is a bug (or something I missed) as cnnDB is not passed to the function.
It is now, in my opinion, working fine; but with out cnnDB.Close in DisplayError. I wonder why it gives "object required" error when I put cnnDB.Close in DisplayError function. Any Idea?
I am still in process of testing. I am wondering these “bug” were if actually a bug or was put there as is for some reason and I am missing that reason.
Any light on the issue is appreciated. And I am grateful for such a nice product.
Thanks,