|
-
Aug 3rd, 2004, 09:56 AM
#1
Thread Starter
Hyperactive Member
LBound function ?
Forgive me, I'm .NEW to .NET and totally .LOST
As I understand the docs, arrays are always 0-based in .NET
so LBound will always return "0".
Is this right?
If so, LBound is a big zero in more ways than 1.
DaveBo
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
-
Aug 3rd, 2004, 10:46 AM
#2
I wonder how many charact
Well, i'm too lazy to look up the MSDN docs on Lbound's transistion to .Net, but I will say this....
You should always make your arrays zero-based anyhow. Then there is no need for a LBound function, because its always zero. Just like a declared integer is always zero by default.
-
Aug 3rd, 2004, 10:48 AM
#3
Fanatic Member
the book i read said the Lbound was pointless too... or did it... damn now i'm confused
-
Aug 3rd, 2004, 11:04 AM
#4
Thread Starter
Hyperactive Member
OK OK
No need to shout.
I never knew zero could be such a big deal.
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
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
|