Article View: be.comp.programming
Article #12580Re: [vb] Wat doe de functie Instr en Replace?
From: Pieter Huygens
Date: Thu, 25 Oct 2001 20:39
Date: Thu, 25 Oct 2001 20:39
23 lines
1973 bytes
1973 bytes
> Graag gedaan. Heb het ook zo geleerd. Er is nog een klein vraagje: ik probeer het alsvolgt te gebruiken: <Begin code> Dim strSubject As String Dim strMail As String Dim intWhere As Integer strMail = incomingdata intWhere = InStr(1, strMail, "subject:") strSubject = Mid(strMail, intWhere) intWhere = InStr(1, strSubject, vbCrLf) strSubject = Mid(strSubject, intWhere) </eind code> incomingdata is de string die de complete header bevat. Als ik het prog probeer te runnen, dan zegt hij me, Invalid procedure call or argument. Waarschijnlijk is het een klein foutje, maar ik vind het niet echt. Als ik op debug klik, geeft hij aan dat er een fout is op deze regel: strSubject = Mid(strMail, intWhere) Nogmaals bedankt! Pieter Huygens
Technical Details
Message-ID:
<EL_B7.439$0A7.90203233@hestia.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!opentransit.net!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mailReferences:
<4sXB7.237$PR.28998755@hestia.telenet-ops.be> <jn_B7.1536$aA1.265@afrodite.telenet-ops.be> <Mq_B7.417$d86.84191426@hestia.telenet-ops.be> <yD_B7.1596$aA1.299@afrodite.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,4edd4c06c6b48422 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2001-10-25 13:39:08 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!opentransit.net!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail From: "Pieter Huygens" <phuygens@pandora.be> Newsgroups: be.comp.programming References: <4sXB7.237$PR.28998755@hestia.telenet-ops.be> <jn_B7.1536$aA1.265@afrodite.telenet-ops.be> <Mq_B7.417$d86.84191426@hestia.telenet-ops.be> <yD_B7.1596$aA1.299@afrodite.telenet-ops.be> Subject: Re: [vb] Wat doe de functie Instr en Replace? Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <EL_B7.439$0A7.90203233@hestia.telenet-ops.be> Date: Thu, 25 Oct 2001 20:39:00 GMT NNTP-Posting-Host: 213.118.39.118 X-Complaints-To: abuse@pandora.be X-Trace: hestia.telenet-ops.be 1004042340 213.118.39.118 (Thu, 25 Oct 2001 22:39:00 CEST) NNTP-Posting-Date: Thu, 25 Oct 2001 22:39:00 CEST Organization: Telenet Internet