Programmatic test if an object is an array vs. a recordset?

Discussion in 'ASP General' started by Guest, Apr 14, 2005.

  1. Guest

    Guest Guest

    Is there a method by which you can programmatically distinguish an array
    from a recordset in VBScript?

    I'd prefer to be able to make a general "object" method and have my code
    sort out whether it has received a rs or an array.

    Thanks.

    -KF
     
    Guest, Apr 14, 2005
    #1
    1. Advertising

  2. <> wrote in message
    news:%...
    > Is there a method by which you can programmatically distinguish an array
    > from a recordset in VBScript?
    >
    > I'd prefer to be able to make a general "object" method and have my code
    > sort out whether it has received a rs or an array.
    >
    > Thanks.
    >
    > -KF
    >

    Use the IsArray function. Here's the documentation:
    http://msdn.microsoft.com/library/en-us/script56/html/vsfctIsArray.asp
     
    Chris Hohmann, Apr 14, 2005
    #2
    1. Advertising

  3. Guest

    Guest Guest

    Great, thanks Chris.

    "Chris Hohmann" <> wrote in message
    news:uv$...
    > <> wrote in message
    > news:%...
    > > Is there a method by which you can programmatically distinguish an array
    > > from a recordset in VBScript?
    > >
    > > I'd prefer to be able to make a general "object" method and have my code
    > > sort out whether it has received a rs or an array.
    > >
    > > Thanks.
    > >
    > > -KF
    > >

    > Use the IsArray function. Here's the documentation:
    > http://msdn.microsoft.com/library/en-us/script56/html/vsfctIsArray.asp
    >
    >
     
    Guest, Apr 14, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Porcelli
    Replies:
    1
    Views:
    380
    »OÆW·L³n§Þ³N¤ä´©³¡
    Jul 28, 2003
  2. Skybuck Flying

    Call oddities: &Test() vs &Test vs Test

    Skybuck Flying, Oct 4, 2009, in forum: C Programming
    Replies:
    1
    Views:
    748
    Skybuck Flying
    Oct 4, 2009
  3. Hung Huynh
    Replies:
    8
    Views:
    341
    Bob Barrows
    Sep 24, 2003
  4. Replies:
    1
    Views:
    141
    Bob Barrows [MVP]
    Apr 24, 2007
  5. +Bob+

    Test for Connection or Recordset open?

    +Bob+, Apr 7, 2009, in forum: ASP General
    Replies:
    5
    Views:
    198
    Bob Barrows
    Apr 7, 2009
Loading...

Share This Page