Professional Web Applications Themes

Enumerate Fields - ASP

d = split("Field1Value,Field2Value,Field3Value", ",") response.write d(0) "Chris Cairns" <ccairnshampton-hampton.com> wrote in message news:usn$EbyRDHA.1556TK2MSFTNGP11.phx.gbl... > Does anyone have a script that will enumerate field values from a string. > Each field is comma separated. > > Field1Value,Field2Value,Field3Value,etc > > I guess something like GetField(MyString,1) where I would pass the string > and the desired field number and it would return only the text in that > particular field. > > >...

  1. #1

    Default Re: Enumerate Fields

    d = split("Field1Value,Field2Value,Field3Value", ",")
    response.write d(0)



    "Chris Cairns" <ccairnshampton-hampton.com> wrote in message
    news:usn$EbyRDHA.1556TK2MSFTNGP11.phx.gbl...
    > Does anyone have a script that will enumerate field values from a string.
    > Each field is comma separated.
    >
    > Field1Value,Field2Value,Field3Value,etc
    >
    > I guess something like GetField(MyString,1) where I would pass the string
    > and the desired field number and it would return only the text in that
    > particular field.
    >
    >
    >

    Aaron Bertrand - MVP Guest

  2. #2

    Default Re: Enumerate Fields

    Chris Cairns wrote:
    > Does anyone have a script that will enumerate field values from a
    > string. Each field is comma separated.
    >
    > Field1Value,Field2Value,Field3Value,etc
    >
    > I guess something like GetField(MyString,1) where I would pass the
    > string and the desired field number and it would return only the text
    > in that particular field.
    dim val_list, ValueArray
    val_list=":Field1Value,Field2Value,Field3Value,etc "
    ValueArray = split(val_list,",")
    response.write "Value 1 = " & ValueArray(0)

    HTH,
    Bob Barrows



    Bob Barrows Guest

Similar Threads

  1. How can i enumerate the menu itmes names in Acrobat 7.0?
    By lpbeaumont2@labcal.com in forum Adobe Acrobat SDK
    Replies: 0
    Last Post: January 13th, 09:29 PM
  2. script to enumerate window services
    By Leon in forum PERL Beginners
    Replies: 3
    Last Post: September 9th, 07:58 PM
  3. Enumerate Methods
    By 台灣微軟技術處支援部 in forum ASP Components
    Replies: 0
    Last Post: August 21st, 02:46 AM
  4. Enumerate all the remote drives
    By Gary Chan in forum PERL Miscellaneous
    Replies: 2
    Last Post: August 10th, 04:22 AM
  5. Enumerate Local Variable Scope
    By Chris Hohmann in forum ASP
    Replies: 2
    Last Post: July 23rd, 05:52 PM

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
  •  

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