Obviously I was being sarcastic. Anyone who has read Qurora in the past 24 hours would see the humor in what I wrote. I don't read German, or whatever language is written in that letter I posted, and I didn't expect anyone else to be able to read the letter. You ruined the mystery of this...
Yes, I am aware. You're probably pretty used to customers being frustratingly ambiguous I bet. ?:)
I'm working on the others suggestions, but I do feel like keeping this thread alive in the process. Setting breakpoints is something I have not yet done.
Ok, I think I just figured it out. I need to sort the list such that the player specified by the user is in the last position of the list before copying over the contents of the file. Does this make sense?
I'm sorry, I thought this was made clear. This code is for a VB console program designed to manipulate data, namely "wins," "losses," "skill," "name," etc. which are stored in both arrays and text files. The remove player function should modify the playerList text file, and the playerList array...
I mean, it's pretty clear that the issue resides in the loops I'm using.
When I remove the arrays and the for loop and do as you say, the same exact behavior results. Regardless of the name I type to be removed, the last name in the list is removed instead.
I've only been coding for a few months. While I do enjoy it, my professor dampens my motivation with ruthless grading practices. Thankfully programming is not my major. I didn't even want to learn VB. I was expecting him to teach C++, but whatever.
I'm not even sure where to look for VB...
I will have to bone up on my debugging skills. I've stared at this thing for days. I guess what I am hoping for is someone to show me another way to do what I need, possibly using a different syntax or method. It's such a simple task, I don't understand.
The weird results are apparent when the list is displayed for the second time, after the loop in the removePlayer function has run. When I actually open the file, it contains the list that was displayed the second time, which gets saved successfully. This is a skeleton that is part of a console...
Save list works fine. Using a name not on the list actually causes every name except the first to be removed. This is weird.
I set the starting index back to 0 and it's just deleting everything after the first name again. I simply don't understand.
It's still not doing what I need it to. Here's what I have, it's a small part of a bigger program.
Const SIZE As Integer = 50
Dim playerList(SIZE), tempPlayerList(SIZE) As String
Dim numPlayers As Integer...
numPlayers is assigned in a different function where the user adds the players to the list.
I tried just using the for loop and what happens is that every name on the list gets replaced with the name I want to remove.
playerList.txt displays a simple list of names that the user has input.
Then the program will ask, if the user chooses, which name they would like to remove from the list. If I choose, say, John to be removed the list becomes
When it should be