>local lnLines, i, lcString
>lnLines=memlines(this.value)
>store 0 to _mline
>for i=1 to lnLines && Loop through all lines
> lcString=alltrim(mline(this.value,1,_mline)) && each line
> if len(lcString)<>5 or type(lcString)<>'N' && typo occurs!
" 123" or "123 " both are legal and satisfy this condition. So is "-1234".
> =messagebox('You must type only 5 digits in each line!',48,'Error')
> return .f.
> endif
>next
>
>
> Very simple and works fine! As I said, I assume, that there are no more 5-6 lines, which users will type. So, what's the reason to switch? :)EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater
NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC
The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys