Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Please use this Board for QBasic related requests ( file research, programming, etc.)
Moderators: Administrator , Global Moderator
SonicSoft
Newbie
Posts: 2 Joined: Mon Jul 25, 2005 1:52 am
Post
by SonicSoft » Mon Jul 25, 2005 1:54 am
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?
buff1
Post
by buff1 » Mon Jul 25, 2005 3:52 am
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