PDA

Click to See Complete Forum and Search --> : function MidB not recognized ?!


Njoannides
Aug 23rd, 2000, 08:37 AM
I wrote this in ASP :


<%@ 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 ?

njoannides@ares.fr

Mark Sreeves
Aug 24th, 2000, 04:58 AM
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/showthread.php?threadid=18175