Article View: nl.comp.programmeren
Article #148Re: Rare fout bij ASP
From: RG
Date: Wed, 17 Aug 2005 22:42
Date: Wed, 17 Aug 2005 22:42
37 lines
2330 bytes
2330 bytes
"Passero" <mdsqkf@dsqmkfj.be> schreef in bericht
news:1124309236.879909@bru-ix-srv240...
> Ik krijg hier af en rare foutmeldingen bij mijn asp pagina's:
>
> Soort fout:
> Runtimefout Microsoft VBScript (0x800A01CA)
> Variabele maakt gebruik van een automatiseringstype dat niet in VBScript
> wordt ondersteund
>
> De code die ik gebruik die voor deze error zorgt is:
>
> varX = session("varX")
>
> of
>
> function getCount(catID)
> q = "select count(*) from table where catID = " & catID
> end function
>
> Ik krijg daar mijn error op de q = "select...." lijn.
> Weet iemand raad?
Als je een functie hebt moet je een waarde retourneren dat doe je als volgt:
function getCount(catID)
getCount = "select count(*) from table where catID = " & catID
end function
In dit geval geef je wel een string terug, en geen resultaat van je sql
query.
Indien je geen waarde wil retourneren, gebruik dan een sub zoals dit:
sub getCount(catID)
q = "select count(*) from table where catID = " & catID
end sub
Maar indien uw functie begint met get, zal het waarschijnlijk de bedoeling
zijn om wel een waarde te retourneren.
Technical Details
Message-ID:
<G3PMe.171896$ga6.9696372@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!62.253.162.218.MISMATCH!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!hq-usenetpeers.eweka.nl!68.142.88.75.MISMATCH!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailReferences:
<1124309236.879909@bru-ix-srv240>Show Full Headers
Complete Article Headers
X-Google-Thread: 107324,22166f304e05a8b8 X-Google-Thread: fcea4,22166f304e05a8b8 X-Google-Attributes: gid107324,gidfcea4,public X-Google-Language: DUTCH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!62.253.162.218.MISMATCH!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!hq-usenetpeers.eweka.nl!68.142.88.75.MISMATCH!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: "RG" <no@spam.com> Newsgroups: nl.comp.programmeren,be.comp.programming References: <1124309236.879909@bru-ix-srv240> Subject: Re: Rare fout bij ASP Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Response Message-ID: <G3PMe.171896$ga6.9696372@phobos.telenet-ops.be> Date: Wed, 17 Aug 2005 22:42:46 GMT NNTP-Posting-Host: 213.119.96.235 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1124318566 213.119.96.235 (Thu, 18 Aug 2005 00:42:46 MEST) NNTP-Posting-Date: Thu, 18 Aug 2005 00:42:46 MEST Organization: Telenet Internet