RIP School Survival Forums
August 2001 - June 2017
The School Survival Forums are permanently retired. If you need help with quitting school, unsupportive parents or anything else, there is a list of resources on the Help Page.
If you want to write about your experiences in school, you can write on our blog.
To everyone who joined these forums at some point, and got discouraged by the negativity and left after a while (or even got literally scared off): I'm sorry.
I wasn't good enough at encouraging people to be kinder, and removing people who refuse to be kind. Encouraging people is hard, and removing people creates conflict, and I hate conflict... so that's why I wasn't better at it.
I was a very, very sensitive teen. The atmosphere of this forum as it is now, if it had existed in 1996, would probably have upset me far more than it would have helped.
I can handle quite a lot of negativity and even abuse now, but that isn't the point. I want to help people. I want to help the people who need it the most, and I want to help people like the 1996 version of me.
I'm still figuring out the best way to do that, but as it is now, these forums are doing more harm than good, and I can't keep running them.
Thank you to the few people who have tried to understand my point of view so far. I really, really appreciate you guys. You are beautiful people.
Everyone else: If after everything I've said so far, you still don't understand my motivations, I think it's unlikely that you will. We're just too different. Maybe someday in the future it might make sense, but until then, there's no point in arguing about it. I don't have the time or the energy for arguing anymore. I will focus my time and energy on people who support me, and those who need help.
-SoulRiser
The forums are mostly read-only and are in a maintenance/testing phase, before being permanently archived. Please use this time to get the contact details of people you'd like to keep in touch with.
My contact details are here.
Please do not make a mirror copy of the forums in their current state - things will still change, and some people have requested to be able to edit or delete some of their personal info.
Thread Rating:
- 0 Vote(s) - 0 Average
- 1
- 2
- 3
- 4
- 5
Visual Basic Coding Help: I have no idea what to do
|
Author |
Message |
Moon_Dew
Defiant
Posts: 6
Joined: Oct 2013
Thanks: 0
Given 0 thank(s) in 0 post(s)
|
Visual Basic Coding Help: I have no idea what to do
I'm suffering from a case of, for lack of a better term, coder's block right. I need to work on this project but I have no idea how to start coding it, other than the immediate obvious.
The Display button's Click event procedure should read the five numbers stored in the numbers.txt file and display the numbers (one through five) in the list box, and the Update button's Click event procedure should read the same five numbers and store them in an array. It then should increase the numbers in the array by 1 and write the array contents to an empty numbers.txt file.
Here's what I've got right now:
Code:
Option Explicit On
Option Strict On
Option Infer Off
Public Class MainForm
Private Sub exitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles exitButton.Click
Me.Close()
End Sub
Private Sub displayButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles displayButton.Click
End Sub
Private Sub updateButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles updateButton.Click
End Sub
End Class
And the list box is named numbersListBox.
|
|
10-26-2013 07:34 AM |
|
Thanks given by: | |
|
Alistoriv
Sanity Not Included
Posts: 625
Joined: Nov 2012
Thanks: 203
Given 169 thank(s) in 114 post(s)
|
Visual Basic Coding Help: I have no idea what to do
>Visual Basic
RIP GORE GOROTH
RIP SAINTVICIOUS
(03-20-2013 05:08 PM)brainiac3397 Wrote: Stand up with pride and say "No! I will not be a McDonalds employee. I WILL BE A GARBAGE MAN!"
|
|
10-26-2013 08:28 AM |
|
Thanks given by: | |
|
Moon_Dew
Defiant
Posts: 6
Joined: Oct 2013
Thanks: 0
Given 0 thank(s) in 0 post(s)
|
Visual Basic Coding Help: I have no idea what to do
...yes, captain obvious, it's Visual Basic, or VB.NET if your prefer that name. Now, how about an actual answer?
|
|
10-26-2013 08:49 AM |
|
Thanks given by: | |
|
no
True Scotsman
Posts: 1,238
Joined: Nov 2012
Thanks: 919
Given 474 thank(s) in 299 post(s)
|
RE: Visual Basic Coding Help: I have no idea what to do
And that was your first mistake.
Hello, traveler.
This is an ancient account I have not used in a long time. My views have changed much in the intervening months and years.
Nonetheless, I refuse to clean it up. Pretending that I've held my current views since the beginning of time is what we in the industry call a lie. Asking people to do so contributes to moralistic self-loathing. "See, those people have nothing damning! I do! I'm truly vile!"
Because you can never be a good person with a single blemish on the moral record, I thought that simply entertaining some thoughts made me irredeemable. Though I don't care for his writing style, William Faulkner presents a good counterexample. He went from being a typical Southern racist to supporting the civil rights movement. These days we'd yell at him for that, probably.
People are allowed to change their views.
Nevertheless, this period of my life has informed some of how I am today. In good ways and bad ways. To purge it would be to do a disservice to history. Perhaps it will not make anyone sympathetic, but it may help someone understand.
If, after reading all this, you still decide to use the post above as evidence that I am evil today, ask yourself if you have never disagreed with the moral code you now follow. In all likelihood you did, at some point. If some questions are verboten, and the answer is "how dare you ask that," don't expect your ideological opponents to ever change their minds.
|
|
10-26-2013 10:26 AM |
|
Thanks given by: | |
|
Moon_Dew
Defiant
Posts: 6
Joined: Oct 2013
Thanks: 0
Given 0 thank(s) in 0 post(s)
|
RE: Visual Basic Coding Help: I have no idea what to do
(10-26-2013 10:26 AM)planetfall666 Wrote: And that was your first mistake.
What do you mean? This is homework help and answers, isn't it? So shouldn't that mean I can get homework help and answers? How is posting here a mistake?
|
|
10-26-2013 10:34 AM |
|
Thanks given by: | |
|
Moon_Dew
Defiant
Posts: 6
Joined: Oct 2013
Thanks: 0
Given 0 thank(s) in 0 post(s)
|
Visual Basic Coding Help: I have no idea what to do
Here's the updated code.
Code:
Option Explicit On
Option Strict On
Option Infer Off
Public Class MainForm
Dim loadedfile As String = "d:\test.txt"
Dim tempstr1 As String = IO.File.ReadAllText(loadedFile)
Private Sub MainForm_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
End Sub
Private Sub Display_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Display.Click
numbersListBox.Items.Add(tempstr1)
End Sub
Private Sub update_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Update.Click
Dim x As Integer = tempstr1.Length - 1
Dim myarray(x) As String
Dim i As Integer = 0
For Each mychr As Char In tempstr1
myarray(i) = mychr
i += 1
ListBox2.Items.Add(i + 1)
Next
End Sub
End Class
|
|
10-26-2013 11:25 AM |
|
Thanks given by: | |
|
Gwedin
dumb shithead
Posts: 2,361
Joined: May 2013
Thanks: 217
Given 559 thank(s) in 410 post(s)
|
Visual Basic Coding Help: I have no idea what to do
Like the others I can't help because you're using VB. I'mma C++/Python man. :(
|
|
10-26-2013 11:52 AM |
|
Thanks given by: | |
|
Heil_Kaiba8921
It's also a gun.
Posts: 1,376
Joined: Sep 2012
Thanks: 8
Given 109 thank(s) in 93 post(s)
|
RE: Visual Basic Coding Help: I have no idea what to do
Maybe you should just make a GUI interface in real time.
The less you try to control things, the less you need to.
Boredom is the #1 enemy of learning. Therefore, school is the #1 enemy of learning.
"Bodies fucking fuck."~Night.Artist
![[Image: 41433.png]](http://internetometer.com/image/41433.png) ![[Image: 14362714_1336391025.png]](http://www.picbadges.com/badges-assets/976/14362714_1336391025.png)
"free speech under the constitution only guarantees the government won't stop him saying it and does not guarantee his right to say things and have no consequences at all as a result. also i completely doubt that he is motivated solely by "i'm saying it because i can" and is probably motivated by a more shitheady motive like "i think it's funny to annoy people and Rustle Le Jimmies and is just hiding behind the first amendment to try to deflect any consequences or make you realize that being allowed to annoy people is a superior moral right. you can still disdain someone for doing things for dumbarse wankery purposes and you have evne more right to ban and insult them for it" ~Trar's friend about Potato.
Thanks for the diploma… can I have my childhood back?
I’d love to have a battle of wits with you… but I hate to fight the unarmed.
|
|
11-16-2013 11:24 PM |
|
Thanks given by: | |
|
User(s) browsing this thread: 1 Guest(s)