DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Str(string) exception

  1. #1
    Miroslav St. Jeliaskoff Guest

    Str(string) exception

    Hi,

    Microsoft.VisualBasic.Str("1")

    Anybody knows why this code returns the exception:
    "Object reference not set to an instance of an object"

    and not something like Invalid parameter type or Syntax
    error...?



    Miroslav St. Jeliaskoff



  2. #2
    Bruce Guest

    Re: Str(string) exception


    I believe that that problem is your parameter type.
    Function "Str" does not expect to convert a string to a string.
    Try This:
    Microsoft.VisualBasic.Str(1)

    Bruce


    "Miroslav St. Jeliaskoff" <miroslav@earthling.net> wrote:
    >Hi,
    >
    > Microsoft.VisualBasic.Str("1")
    >
    >Anybody knows why this code returns the exception:
    >"Object reference not set to an instance of an object"
    >
    >and not something like Invalid parameter type or Syntax
    >error...?
    >
    >
    >
    >Miroslav St. Jeliaskoff
    >
    >



  3. #3
    Miroslav St. Jeliaskoff Guest

    Re: Str(string) exception

    I know this, the problem is that the message is not very
    correct, isn't it?

    "Bruce" <BruceHaslam@Cox.net> wrote in message
    news:3eaf06c1$1@tnews.web.devx.com...
    >
    > I believe that that problem is your parameter type.
    > Function "Str" does not expect to convert a string to a

    string.
    > Try This:
    > Microsoft.VisualBasic.Str(1)
    >
    > Bruce
    >
    >
    > "Miroslav St. Jeliaskoff" <miroslav@earthling.net> wrote:
    > >Hi,
    > >
    > > Microsoft.VisualBasic.Str("1")
    > >
    > >Anybody knows why this code returns the exception:
    > >"Object reference not set to an instance of an object"
    > >
    > >and not something like Invalid parameter type or Syntax
    > >error...?
    > >
    > >
    > >
    > >Miroslav St. Jeliaskoff
    > >
    > >

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center