Announcement

Collapse
No announcement yet.

Accessing dataset by name or enumerating fieldnames ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessing dataset by name or enumerating fieldnames ?

    Hi,

    is there a way to either enumerate the columns returned from the sc_select so that I can have the list of columns and/or is there a way to get the value of the field by using the fieldname i.e. $ds->fields['fieldname'];

    Cheers
    Sparrow

  • #2
    Originally posted by sparrow View Post
    Hi,

    ... using the fieldname i.e. $ds->fields['fieldname'];
    Why don't you just go ahead and try your own suggestion? :-)

    jsb

    Comment


    • #3
      Hi jsbinca,

      :-) Well my suggestion is something I came up with but there is no documentation on all the methods and properties available from the dataset.

      I'll try it

      Cheers
      Sparrow

      Comment


      • #4
        Originally posted by sparrow View Post
        Hi jsbinca,

        :-) Well my suggestion is something I came up with but there is no documentation on all the methods and properties available from the dataset.

        I'll try it

        Cheers
        Sparrow
        It's not clear sadly in documentation, but sc_select returns an ADODBRecordset. You can look into it here: adodb.sourceforge.net/docs-adodb.htm
        /Giuseppe

        Professional Scriptcase Services
        Some Customers opinions

        Comment

        Working...
        X