Solved

# newbie strugglin with a collection

Posted on 2006-04-13
Medium Priority
168 Views
Public Structure mystruct
Dim nums as collection
End Structure

Dim a as mystruct
a.nums = new collection
dim x as integer, y as integer

x=1
y=5
Do while x<= 6
x = x+1
y = y * 2
Loop

0
Question by:campbe07
• 4
• 3

LVL 27

Expert Comment

ID: 16450447
Hi campbe07,
I do not see what the problem is
a.nums.item(3) gives a value of 20, when I run your program. Where exactly is your problem?

Dabas
0

LVL 44

Accepted Solution

Arthur_Wood earned 2000 total points
ID: 16450468
Dim a As mystruct
a.nums = New collection
Dim x As Integer, y As Integer

x = 1
y = 5
Do While x <= 6
x = x + 1
y = y * 2
Loop
MessageBox.Show(a.nums.Item(3))

the Message box shows the value 20 = 5*2*2

AW
0

LVL 44

Expert Comment

ID: 16450485
by the way, for future note, this is, BY NO STRETCH OF THE IMAGNINATION, a 500 point question, and Yes, I meant to YELL.  This is barely a 20 point question - it is so basic and fundamental.

Just because you have 'unlimited' points, does not mean that you show throw them around like confetti.  The Unlimited points has lead to a horrible distortion of the points system - it is Gresham's law, all over again.

AW
0

LVL 27

Expert Comment

ID: 16450496
What is Gresham's law?
0

LVL 44

Expert Comment

ID: 16450522
Dabas>> Google it- basically, it is a law of economics, that says "Bad money drives out the Good" - when paper money is plentiful, hard currency disappears (people tend to horde it, since hard currency has 'real value, where paper money has values purely based on trust).  That is what leads to inflation, and in the extreme case, Hyper-inflation.  That is what has happened to the points system, with the introduction of the Premium membership, which carries with it UNLIMITED points, so people start offering 500 points for a very basic, beginner level question - after all, points have no value when you have an unlimited supply, so what 'difference' does it make if I offer 20 points or 500 since I have an unlimited supply, 20 is the same as 500, or 5000 (if 5000 points could be offered for a question).

0

LVL 44

Expert Comment

ID: 16450526
Dabas>> here is the wikipedia link:

http://en.wikipedia.org/wiki/Gresham's_Law

AW
0

LVL 27

Expert Comment

ID: 16450607
Thanks

Point taken. Although I do not often see 25 pt questions offered at 500.
This is campbe07's first question anyhow.

As to the introduction of the Premium membership "inflating" the points system, I am not sure if it has.
There are non Premium membership members that ask 50 point questions that require a 500 point answer.
And I have seen you spending a considerable amount of your time answering them nevertheless.
In the end, from the owners of experts-exchange point of view, I assume the system as is now, brings them in the most \$\$\$\$. That probably is what is important to me.
I do prefer to answer 500 poiint questions to get to my monthly 3000 (do not have much time for EE nowadays). Once I am over the 3000 and have time to spare, I do not really care how much points was allocated to the question
From my point of view, the search engine provides me a very resourceful reference to answer many questions. I look at the title and contents of the search results, very seldom at the point value given. In the pre-Premium membership times the value of the search engine was less, as there were less questions and answers.

From a fairness point of view, you are absolutely right! Life is not fair, that is a fact.

Dabas
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
###### Suggested Courses
Course of the Month12 days, 23 hours left to enroll