A1VBCode Forums

Buffer overflow problem


http://a1vbcode.com/vbforums/Topic32388.aspx

By UHsoccer - 4/9/2016

Trying to work a buffer overflow problem



1) Is there a statement that I can add to either increase or ignore the buffer overflow issue



tried adding without success

<%@Language="VBScript"%>

<%Response.Buffer = False%>



2) While in the loop



numProb = 0

While Not objProb.EOF



numProb = numProb + 1

' much code



if numProb > 100 then exit-exit-this-loop ???



objProb.MoveNext ' next activity



wend



How can I exit this after a specific number of entries have been processed?



Appreciate help
By Mark - 4/10/2016

Try a for loop instead



For i = 1 to 100

' your code

objProb.MoveNext

Next i