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

  1. #1

    Default Asp custom function

    Sorry for m possible silly question.
    I have created a recordset in an asp page. I want to write
    a function that accepts that recordset as a parameter..
    Is it possible?
    Alessandro Ghidini Guest

  2. Similar Questions and Discussions

    1. Canon Custom Function 04
      Two Questions regarding Canon DSLRs (in particular the 20D): a) Is it necessary to set the Custom Function 04 to 1 (AE Lock / AF) in order to...
    2. pass variable to custom function not working MX
      I have an app that I built in Flash 5 that I want to output in Flash MX (not 2004, though) but part of my code, which works fine as Flash 5 swf,...
    3. How to add postback function in Custom Server Controls
      In the procedure CreateChildControls I add several controls like check and textboxes, button link and so on. How can I get the postback respons on...
    4. HELP: Custom DataReader Function - Tricky issue
      I have a function that returns a datareader. The problem is that in the function's FINALLY I close the datareader and set it to nothing. But,...
    5. Custom replacement function
      Hi. I am trying to create a custom replace function for my applications. I have a table with two columns where I store some words and their...
  3. #2

    Default Re: Asp custom function

    I want ro reurn the value of a column but the column name
    depends on another variable.
    It's only an if, but i have to repeat it a lot of times.
    >-----Original Message-----
    >If you leave your ado connection open or use a
    disconnected recordset, I
    >would say yes. What do you want to do in the function?
    I most likely
    >wouldn't pass a recordset if I didn't have to. I'd pass
    an array.
    >
    >Ray at work
    >
    >"Alessandro Ghidini" <ghido@email.it> wrote in message
    >news:0a8201c3448e$dde0ae00$a101280a@phx.gbl...
    >> Sorry for m possible silly question.
    >> I have created a recordset in an asp page. I want to
    write
    >> a function that accepts that recordset as a parameter..
    >> Is it possible?
    >
    >
    >.
    >
    Alessandro Ghidini Guest

  4. #3

    Default Re: Asp custom function

    How will the function know the name of the column, and can you use the
    column index in your recordset instead and avoid this? Like, instead of
    rs.fields(variableWithColumnName).value, do rs.fields(2).value.

    Ray at work

    "Alessandro Ghidini" <ghido@email.it> wrote in message
    news:06a501c34491$b2919d60$a001280a@phx.gbl...
    > I want ro reurn the value of a column but the column name
    > depends on another variable.
    > It's only an if, but i have to repeat it a lot of times.
    >
    > >-----Original Message-----
    > >If you leave your ado connection open or use a
    > disconnected recordset, I
    > >would say yes. What do you want to do in the function?
    > I most likely
    > >wouldn't pass a recordset if I didn't have to. I'd pass
    > an array.
    > >
    > >Ray at work
    > >
    > >"Alessandro Ghidini" <ghido@email.it> wrote in message
    > >news:0a8201c3448e$dde0ae00$a101280a@phx.gbl...
    > >> Sorry for m possible silly question.
    > >> I have created a recordset in an asp page. I want to
    > write
    > >> a function that accepts that recordset as a parameter..
    > >> Is it possible?
    > >
    > >
    > >.
    > >

    Ray at Guest

Posting Permissions

  • You may not post new threads
  • You may 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