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

Error is the L variable. It gets value somewhere.

strText="Some text"
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


Reply With Quote