SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard boxhead's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    1,040
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    named array not numbered?

    Can I name my array index rather than number?

    I am reading a RS into an array and rather than reference the fields in each elements using a number, i would lke to use the column headers from the table:

    myArray(13,6)

    would become

    my array(name,6).

    The reason is that i am worried about a query being added to in the table and throwing the column numbers out.

    cheers

    monkey
    monkey - the rest is history

  2. #2
    SitePoint Wizard bbolte's Avatar
    Join Date
    Nov 2001
    Location
    The Central Plains
    Posts
    3,304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not by using getrows. you could jump through a bunch of hoops and dump the getrows array into a dictionary, but then you'll need to hard code values in, etc...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •