ADOX - how do I get "maxlength" from columns(...) collection?

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ADOX - how do I get "maxlength" from columns(...) collection?

    I see columns collection has only following properties:

    Attributes, DefinedSize, Name, NumericScale, ParentCatalog, Precision,
    Properties, RelatedColumn, SortOrder, Type

    So is "maxlength" somehow part of "attributes" or "properties" property? If
    so, can you please give me an example of how it works?

    Thanks!

    --
    Scotter


    Scotter Guest

  2. Similar Questions and Discussions

    1. hidden columns that contain a "key" field
      I've seen several examples where people include a "key" column in the datagrid so that they know which row to update during the update phase. The...
    2. Collection property "could not be initialized" in design mode for custom datagrid control
      Hello all, I've been working on a custom datagrid (custom web control inherited from DataGrid). I am attempting to add a new collection property...
    3. Collection Creation Error "Cannot Update Path"
      (I'm running running CF 6.1 on Win 2k Server) I am trying to add a CF Collection to content stored on a different server. I have mapped the other...
    4. Can't find the "Rows and Columns" option in the new version
      I have Illustrator CS now and I can't find the rows and coulmns feature that I use so frequently. Does anyone know where it is? The only thing I can...
    5. CollectionEditor is always "Object Collection Editor"
      I cannot, for some reason, get the CollectionEditor to deal with my child Controls in a strongly typed manner. I can add and remove items at design...
  3. #2

    Default Re: ADOX - how do I get "maxlength" from columns(...) collection?

    aha!
    myColumn.DefinedSize
    Yes?

    "Scotter" <[email protected]> wrote in message
    news:sZZDc.19632$[email protected]..
    > I see columns collection has only following properties:
    >
    > Attributes, DefinedSize, Name, NumericScale, ParentCatalog, Precision,
    > Properties, RelatedColumn, SortOrder, Type
    >
    > So is "maxlength" somehow part of "attributes" or "properties" property?
    If
    > so, can you please give me an example of how it works?
    >
    > Thanks!
    >
    > --
    > Scotter
    >
    >

    Scotter Guest

  4. #3

    Default Re: ADOX - how do I get "maxlength" from columns(...) collection?

    Yes.
    This link may help:
    [url]http://msdn.microsoft.com/library/en-us/ado270/htm/admscadoddloverview.asp[/url]

    and alse (thanks to the Wayback Machine):
    [url]http://web.archive.org/web/20030427045121/http://msdn.microsoft.com/library/en-us/dndao/html/daotoadoupdate.asp?frame=true[/url]

    Bob Barrows

    Scotter wrote:
    > aha!
    > myColumn.DefinedSize
    > Yes?
    >
    > "Scotter" <[email protected]> wrote in message
    > news:sZZDc.19632$[email protected]..
    >> I see columns collection has only following properties:
    >>
    >> Attributes, DefinedSize, Name, NumericScale, ParentCatalog,
    >> Precision, Properties, RelatedColumn, SortOrder, Type
    >>
    >> So is "maxlength" somehow part of "attributes" or "properties"
    >> property? If so, can you please give me an example of how it works?
    >>
    >> Thanks!
    >>
    >> --
    >> Scotter
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139