Hi,

Best guess it's Customer Id.  -
Turn on the exception for NullReferenceException

Debug -> Exceptions -> Common Language.... -> System
Then check,

NullReferenceException
ArgumentNullException
NotImplementedException

That will help you correct any problems, however you really need to
refactor that and pass a single object with properties. It will save you a
lot of time.

.02c
Davy

Davy,

"So you want to keep data which is local, only ever going to be local, only
needed locally, never accessed remotely, not WANTED to be made available
outside our building, which can only WEAKEN our security by being off site,
hosted offsite." BOFH: Simon Travaglia




On Tue, Apr 8, 2014 at 10:10 AM, <[email protected]> wrote:

> I have a function with  about 10 arguments,  one of the variables is
> failing,  ie Object reference not set to an instance of an object.
>
>
>
> Is it possible to determine which variable is causing the issue?
>
>
>
>
>
> Public Function AddCustomer(ByVal CustomerId As Nullable(Of Integer),
> ByVal Company As String, ByVal TradingAs As String, ByVal AccessName As
> String, ByVal Address As String, ByVal Address2 As String, ByVal Suburb As
> String, ByVal State As String, ByVal Postcode As String, ByVal CountryId
> As Integer, ByVal PostalAddress As String, ByVal PostalAddress2 As String,
> ByVal PostalSuburb As String, ByVal PostalState As String, ByValPostalPostcode
> As String, ByVal PostalCountryId As String, ByVal Phone As String, ByValFax
> As String, ByVal Email As String, ByVal Firstname As String, ByValLastname
> As String, ByVal UserEmail As String, ByVal Username As String, 
> ByValUserPassword
> As String, ByVal Website As String, ByVal Mobile As String)
>
>
>
>
>

Reply via email to