|
-
Jul 31st, 2000, 08:00 AM
#1
Thread Starter
Fanatic Member
c = "1,2,3,4,5,6"
a = Split(c, ",")
how do i know that my "a" array has 6 items in it
a.ubound
gives me an error
Should Declare Anything specially?
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Jul 31st, 2000, 08:05 AM
#2
Hyperactive Member
does that work? taking the split of an array? let me try that first then try to help.
what are you trying to do here? take a string and assign it to an array?
[Edited by billrogers on 07-31-2000 at 09:09 AM]
-
Jul 31st, 2000, 08:07 AM
#3
Fanatic Member
Ubound is a function in itself, not a method of an array.
Code:
Msgbox UBound(myArray)
Iain, thats with an i by the way!
-
Jul 31st, 2000, 08:10 AM
#4
Hyperactive Member
yes, but what is it he is attempting to do here?
I believe he wants to take a string and try to assign it to an array, then get the ubound of that array.
-
Jul 31st, 2000, 08:14 AM
#5
Thread Starter
Fanatic Member
Oops...
Let me delete this before anyone sees!
c = "1,2,3,4,5,6"
a = Split(c, ",")
for b = 0 to ubound(a)
debug.print a(b)
next b
Thanks
Alot
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Jul 31st, 2000, 08:17 AM
#6
Fanatic Member
Bill.
This is my guess.
Code:
Dim c as String
Dim a() as String
c = "1,2,3,4,5"
a = Split(c,",")
Iain, thats with an i by the way!
-
Jul 31st, 2000, 08:18 AM
#7
Fanatic Member
OK you just delted that post, so mine now makes no sense.
Iain, thats with an i by the way!
-
Jul 31st, 2000, 08:48 AM
#8
Fanatic Member
Don't worry Iain. That imaginary friend of yours will stop banging on the radiators during the night if you spend a few hours a week talking to somebody who can help you through this difficult, and no doubt stressful, time.
And while the shrink <ahem> psycho-emotional councillor deals with your problem(s), I would go easy on the hallucinogenic drugs. And the drink. And the smoking. And the gambling. And the women. Maybe not the women.
Together, you and your psycho-emotional councillor will be able to cure you from this vicious circle of drugs, lies, and programming.
You can save a life. Your own.
-
Jul 31st, 2000, 08:58 AM
#9
Hyperactive Member
sorry iain, i figured it out.
-
Jul 31st, 2000, 09:58 AM
#10
Frenzied Member
ROFL
Harry.
"From one thing, know ten thousand things."
-
Jul 31st, 2000, 01:05 PM
#11
"I'm fairly distressed here!", Dr. Iam Malcolm
Jurassic Park
I just thought it seemed appropriate here, "a.ubound" good heavens above!
-
Jul 31st, 2000, 01:19 PM
#12
_______
<?>
10 years after the fact....
'zerobase + 1 gives the number of items
MsgBox UBound(a) + 1
'to print it's
Dim i
For i = LBound(a) to UBound(a)
debug.print a(i)
Next
"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
|