
Problem passing values from object back to ASP
I have created an object in VB 6 that accepts particular values, generates a
Word document based on those values and then passes back the file name of
the word document.
I need to validate my initial values that I am passing into the object
before I create the word doc, and am trying to do so with functions defined
within the object. Initially I defined those functions to return values of
type boolean, but saw that the values were not being passed back to the ASP
page. When I enter good data, the function's results when displayed in ASP
are ALWAYS false. I switched the return type of the function to variant and
it fixed the problem. I had heard that ASP scripts require all variables
passed to them to be of type variant. Is this true?
Well, I thought I fixed the problem by switching the return types to
variant, but that is still not the case.
The object will return values properly if I have my VB dev. environment open
and am running the DLL from the dev environment. However, the moment I
compile and install/register the DLL, the object gives me the same problem I
had initially. It never returns the values--they are always false.
Does anybody have a clue on what the problem is on this stuff? I have been
working on it for 3 days and am getting very frustrated.
Thanks
Josh