RE: MI-L limit in mid$() size

2003-11-21 Thread Jacques Paris
Thanks to all who gave me reason to believe (as I should I done it) there is nothing wrong with the mid$() function. It was a problem due to the way I was calculating the arguments, by increments that I thought would end up to the string length but in fact exceeded it. I rediscovered the very old s

RE: MI-L limit in mid$() size

2003-11-20 Thread Warren Vick, Europa Technologies Ltd.
= 29700 print "j (smallint) = "+j print "Mid$(BigString, j, 10) = "+chr$(34)+Mid$(BigString, j, 10)+chr$(34) end sub ' End -Original Message- From: Jacques Paris [mailto:[EMAIL PROTECTED] Sent: 20 November 2003 22:49 To: MIL Subject: MI-L limit in mid$()

MI-L limit in mid$() size

2003-11-20 Thread Jacques Paris
The length of a string variable into which I read the record of a file is of 32766. I use the mid$() function to extract bits and pieces. When the start parameter (second argument) reaches 29696, there is an error message "Overflow Mid$; argument 2 has invalid type". As the same formula has worked