HighTechTalks DotNet Forums  

Returning VBEmpty from .NET to Classic ASP

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Returning VBEmpty from .NET to Classic ASP in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
wangdawei1117@gmail.com
 
Posts: n/a

Default Returning VBEmpty from .NET to Classic ASP - 05-24-2007 , 03:46 PM






I am trying to return the variant type vbEmpty from a .NET .dll to
Classic ASP but it is not working correctly. Here is the code that I
am using...

In C#:
return Microsoft.VisualBasic.VariantType.Empty;

However, this returns an integer value of 0 (the value of the
constant) and not the actual VBEmpty variant. Any ideas how I can
return the actual variant type VBEmpty to Classic ASP?


Reply With Quote
  #2  
Old   
wangdawei1117@gmail.com
 
Posts: n/a

Default Re: Returning VBEmpty from .NET to Classic ASP - 05-24-2007 , 04:41 PM






On May 24, 3:46 pm, wangdawei1... (AT) gmail (DOT) com wrote:
Quote:
I am trying to return the variant type vbEmpty from a .NET .dll to
Classic ASP but it is not working correctly. Here is the code that I
am using...

In C#:
return Microsoft.VisualBasic.VariantType.Empty;

However, this returns an integer value of 0 (the value of the
constant) and not the actual VBEmpty variant. Any ideas how I can
return the actual variant type VBEmpty to Classic ASP?


Hi, All, we finally worked it out.

Just return null;



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.