View Single Post
  #4 (permalink)  
Old May 22nd, 2005, 01:36 AM
vemaju vemaju is offline
Friend of Wrox
 
Join Date: Oct 2003
Location: , , Finland.
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Error is the L variable. It gets value somewhere.
Example:

strText="Some text"
L=15
cLetter = Mid(strText, L, 1) 'cLetter is empty
cLetterASC=Asc('empty') '=Error

Just like Om says you must check cLetter value before assigning value to cLetterASC

-vemaju

Reply With Quote