|
-
May 15th, 2008, 07:25 PM
#1
Thread Starter
Member
[2008] Couple Problems
First one is this error, probably really simple to fix: "Reference to a non-shared member requires an object reference"
I get it when I try to remove an item in a list
At the top of the code:
vb.net Code:
Public shotList As New List(Of Shot)
Public shotIndex As Int32
Then in my structure:
vb.net Code:
If life >= distance Then
shotList.RemoveAt(shotIndex)
End If
The second one is a bit weirder, I have a variable that doesn't want to me altered. http://www.vbforums.com/showpost.php...5&postcount=11
Any help would be greatly appreciated
-
May 15th, 2008, 07:47 PM
#2
Thread Starter
Member
Re: [2008] Couple Problems
Figured out the first one, that was an easy one, lol. Although I'm still stummped on the second one (the link), it looks like no variable in the updateshot sub in teh shot structure will accept any values.
-
May 16th, 2008, 06:30 AM
#3
Re: [2008] Couple Problems
What did you do to fix the first one?
-
May 16th, 2008, 07:41 AM
#4
Thread Starter
Member
Re: [2008] Couple Problems
The part that was in the structure should have been in the progresschanged sub.
-
May 16th, 2008, 02:44 PM
#5
Thread Starter
Member
Re: [2008] Couple Problems
The variables in the structure in the list keep resetting each time they are called, is there somthign special you have to do to set a variable of a list item?
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
|