Results 1 to 2 of 2

Thread: function MidB not recognized ?!

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    France
    Posts
    7
    I wrote this in ASP :

    Code:
    <%@ Language="VBScript">
    <%
    Dim TotalBytes, DataRead
    Dim PosBeg, PosEnd, Eof
    	   
    TotalBytes = Request.TotalBytes
    DataRead = Request.BinaryRead(n)
    PosBeg = 1
    PosEnd = InstrB( PosBeg, DataRead, Chr(13) )
    Eof = MidB( DataRead, PosBeg, (PosEnd-PosBeg) )
    %>
    And Internet Explorer 4.0 answers me:

    Erreur d'exécution Microsoft VBScript erreur '800a0005'
    Appel ou argument de procédure incorrect: 'MidB'

    WHY ?

    [email protected]

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    There are several VB fuctions which are not supported in VBScript.

    also haviung a variable called Eof is probably confusing it


    http://forums.vb-world.net/showthrea...threadid=18175
    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width