Professional Web Applications Themes

Asp custom function - ASP Database

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?...

  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. #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" <ghidoemail.it> wrote in message
    >news:0a8201c3448e$dde0ae00$a101280aphx.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

  3. #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" <ghidoemail.it> wrote in message
    news:06a501c34491$b2919d60$a001280aphx.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" <ghidoemail.it> wrote in message
    > >news:0a8201c3448e$dde0ae00$a101280aphx.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

Similar Threads

  1. Canon Custom Function 04
    By Lester Wareham in forum Photography
    Replies: 3
    Last Post: December 24th, 01:43 AM
  2. pass variable to custom function not working MX
    By amphibianZ in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: March 3rd, 05:24 PM
  3. How to add postback function in Custom Server Controls
    By ton in forum ASP.NET Building Controls
    Replies: 11
    Last Post: February 2nd, 07:55 PM
  4. HELP: Custom DataReader Function - Tricky issue
    By VB Programmer in forum ASP.NET General
    Replies: 4
    Last Post: August 13th, 03:43 AM
  5. Custom replacement function
    By Robert Scheer in forum Microsoft SQL / MS SQL Server
    Replies: 1
    Last Post: June 30th, 07:29 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