Red Gate forums :: View topic - VB.net not passing nulls to integer in web service test
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Load
ANTS Load forum

VB.net not passing nulls to integer in web service test

Search in ANTS Load forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
stupy1



Joined: 08 Jul 2005
Posts: 7

PostPosted: Fri Mar 02, 2007 10:56 pm    Post subject: VB.net not passing nulls to integer in web service test Reply with quote

I need to be able to pass nulls to integers when testing a web services. this passes a zero instead:

Dim request As New twservices1.SupplyCostRequest
request.SupplyRouteKey = rnd.Next(1, 616)
request.DestinationTradingPartnerKey = Nothing
request.OriginTradingPartnerKey = Nothing
request.ItemKey = Nothing

for the last three criteria which are nullable integers.

Is this because the version of visual studio for scripting is 1.1? any ideas?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6643

PostPosted: Mon Mar 05, 2007 7:40 pm    Post subject: Reply with quote

It sounds a bit like a peculiarity of the VB Language. How about instead of Nothing, using Convert.ToString(System.Reflection.Missing.Value)?
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group