|
Thread: Len
-
Nov 4th, 2000, 07:45 AM
#1
Thread Starter
Addicted Member
what does that fuction do in vb i see people use it alot and i dont know what it does thanks
WHat would we do with out Microsoft.
A lot more.
-
Nov 4th, 2000, 07:48 AM
#2
transcendental analytic
It returns the length of a string
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 4th, 2000, 08:38 AM
#3
Fanatic Member
NO kedaman!
The Len function returns the length of a variable. Try this:
Code:
Dim a As Long
Debug.Print Len(a)
It will return 4. So, the Len function in VB returns the length (number of bytes) of a variable.
-
Nov 4th, 2000, 08:45 AM
#4
Actually, you're both right. The Len function will perform either of these options depending on what you pass through it.
-
Nov 4th, 2000, 08:56 AM
#5
Fanatic Member
No MegaTron -- I am right, keda is wrong.
What he says is that the Len funcion does not return the length of a Long, for instance. Whereas I say the Len function returns the length of a string and anything else, you pass it.
SO, I am right, hehe.
-
Nov 4th, 2000, 09:02 AM
#6
_______
<?>
HaxSoft:
kedaman didn't say it didn't do anything...He said one of the things it does...and who cares about my daddy's bigger than your daddy junk. As long as Bob gets an understanding of what is happening and I am sure he can figure it out between the lines.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 4th, 2000, 09:14 AM
#7
transcendental analytic
Len does actually returns the length of a string, if you compare to LenB that returns the length of the memory used by the string. So actually yes, were both right, + Megatron is right and not to forget HeSaidJoe is right.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 4th, 2000, 09:24 AM
#8
Thread Starter
Addicted Member
so it can return a strinf value right lets say i ave a dim a string i can get the lenth of that string riht
WHat would we do with out Microsoft.
A lot more.
-
Nov 4th, 2000, 09:29 AM
#9
_______
<?>
Bob:
Yes, as stated above, it will return the length of a string if you pass it a string.
myString = "Bob"
myLen = len(myString) ' Return of 3
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|