Problem passing values from object back to ASP 
Author Message
 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



Sat, 10 Nov 2001 03:00:00 GMT  
 Problem passing values from object back to ASP
this sounds like a typical permissions problem, mainly because you claim it
runs in dev but not in compile.  Is it accessing anything that would only
exists in a  user context like the registry, or are you trying to pass
values out as arrays or collections etc and not setting them properly in the
asp code.

John Timney (MVP)



Sun, 11 Nov 2001 03:00:00 GMT  
 Problem passing values from object back to ASP
The object does need to access the registry, however for the particular
functions I am calling, they do not require the registry access.  The
functions are being passed values straight from the ASP code into the
function.  The values are not in collections or arrays--just regular text
strings.

Where/what accesses do I need to change to see if permissions really are the
problem?

Thanks for input, and for your help!

--Josh

Quote:

>this sounds like a typical permissions problem, mainly because you claim it
>runs in dev but not in compile.  Is it accessing anything that would only
>exists in a  user context like the registry, or are you trying to pass
>values out as arrays or collections etc and not setting them properly in
the
>asp code.

>John Timney (MVP)



Sun, 11 Nov 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Passing a Value from JavaScript back to ASP

2. passing recordset back to ASP from a COM-object

3. Problem of Passing value from .asp to .vbs

4. ASP : Passing values from One ASP to the Next

5. Problem passing VB COM+ ASP Request object to .NET component System.Web.HTTPRequest through COM interop

6. Problem passing a variant array out of VBasic object to ASP

7. ObjectContext vs. Passing ASP objects from ASP page

8. By passing POSTBACKs in asp.net to go to page by history.back()

9. Passing a variant array from asp to a cls and back

10. Passing array from ASP (VBScript) to DLL and back

11. how to get value passed back from function..

12. Passing a return value back

 

 
Powered by phpBB® Forum Software