Page 1 of 1

LEN

Posted: Mon Jul 25, 2005 1:54 am
by SonicSoft
I've started using QBasic a few days ago and I can't figure out what to use the LEN statement for. What does it do and when should I use it?

Posted: Mon Jul 25, 2005 3:52 am
by buff1
It's used to get the length of a string variable . For example:

A$="Hello"
print len(a$)

this would return (i.e. print) 5