Click to See Complete Forum and Search --> : calling a vb function from asp
raj2000
Jun 19th, 2000, 04:47 PM
Hello,
I am trying to call a visual basic function from within asp,
pass it some parameters, and receive some values back .
How do I call the function and then return more than one value back, all the values are of different types?
regards
Ianpbaker
Jun 19th, 2000, 06:26 PM
Hi raj2000
As you may or may not know, ASP only uses variants.
Si I would try converting all your return values into strings And returning them in a 2 dimension variant array(eg. array(0,0),array(0,1) can hold all your strings.array(1,0),array(1,1) could hold all your numbers etc etc.)
then Once you have returned them into asp, you can then convert them back to what ever you need.
If you are using activeX dll's to do this reply back and I can show you another way if you like.
Hope this helps
Ian
raj2000
Jun 19th, 2000, 06:31 PM
I am using activex dlls to this.
Ianpbaker
Jun 19th, 2000, 07:36 PM
Hi raj2000
In that case why not set up properties for your class. When you call the function or on the class initalize depending whether your passing any variables, set the properties to what you need then in the asp you can use myvar = myObject.Myproperty. That way you can have as many different values as you like.
Hope this helps
Ian
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.