The reason i have for changing the type from Variant to
String is that i downloaded a code advisor (from
Microsoft), that checks VB6 code for errors that can occur
when upgrading to .Net.
It suggests that i should change all Variants to early
What happends when i upgrade and some types still are
>"Sven" <japp66hotmail.com> wrote in message
>news:055201c37cac$8f3043f0$a401280aphx.gbl...>> Hi all!
>> Why doesnt this work?
>> In an .asp page i call for a VB6 function like this:
>> Set oPage = server.CreateObject("tool.templates")
>> oPage.getStandard Cstr(strODBC),CStr(strHTML)
>> Response.Write strHTML
>> The strHTML is a return variable.
>> The Function in VB is declared like this:
>> Public Sub getStandard(strODBC As String, strHTML As
>> When it returns to the asp page nothing is "printed"
>> If i declare strHTML as a Variant in VB and removes the
>> CStr() function in the .asp page, it works fine.
>> If i look at strHTML in VB before it returns it looksonly pass that type>>> (when i use String)
>ASP only supports "Variant", so the general rule is tous;244012>in and out of components.
>[url]http://support.microsoft.com/default.aspx?scid=kb;en-[/url]utilities for running IIS>
>Tom Kaminski IIS MVP
>[url]http://www.iistoolshed.com/[/url] - tools, scripts, andrs/iis/>[url]http://mvp.support.microsoft.com/[/url]