Hi there...!
I have a problem when calling a function that returns a recordset value. Here's my problem:
sub main
...
call WriteCatalog(rs("productname"),..., GetName(rs("manufacturercode")),...)
...
end sub
sub WriteCatalog(prodname,...,manufacturer,...)
response.write "<table>...manufacturer...prodname...</table>"
end sub
function GetName(Code)
declare recordset
set recordset=connection.execute...
GetName=recordset(0).value
recordset.close
set recordset=nothing
end function
Now, i doesn't get an error but, if take off the function the code works well, if not the page isn't written. where do you think the problem may be?? i´ve also tried to call the function from the WriteCatalog sub but it also doesn't work.
thanks in advance
I have a problem when calling a function that returns a recordset value. Here's my problem:
sub main
...
call WriteCatalog(rs("productname"),..., GetName(rs("manufacturercode")),...)
...
end sub
sub WriteCatalog(prodname,...,manufacturer,...)
response.write "<table>...manufacturer...prodname...</table>"
end sub
function GetName(Code)
declare recordset
set recordset=connection.execute...
GetName=recordset(0).value
recordset.close
set recordset=nothing
end function
Now, i doesn't get an error but, if take off the function the code works well, if not the page isn't written. where do you think the problem may be?? i´ve also tried to call the function from the WriteCatalog sub but it also doesn't work.
thanks in advance