-
Mar 26th, 2015, 06:26 PM
#1
Lets Build a Program
Im bored and have a creative idea for this thread. Lets build a program in VB one line at a time until we create a monstrosity assuming this ends up a super thread like post race.
Here are the rules:
- It can only be one line at a time.
- It must be in VB.Net
- It must contain line numbers.
- If a line needs deleted, say Delete (your line number here).
- Troll posts and full sub routines/functions are not allowed and will be disregarded.
- If there is a syntax error, say Syntax Error (your line number here)
I will start
Code:
000 Option Explicit On
-
Mar 27th, 2015, 03:18 AM
#2
Re: Lets Build a Program
Originally Posted by Jacob Roman
Im bored and have........
Lol....just married and already bored?
-
Mar 27th, 2015, 03:58 AM
#3
-
Mar 27th, 2015, 05:21 AM
#4
Re: Lets Build a Program
Originally Posted by Jacob Roman
Im bored and have a creative idea for this thread. Lets build a program in VB one line at a time until we create a monstrosity assuming this ends up a super thread like post race.
Here are the rules:
- It can only be one line at a time.
- It must be in VB.Net
- It must contain line numbers.
- If a line needs deleted, say Delete (your line number here).
- Troll posts and full sub routines/functions are not allowed and will be disregarded.
- If there is a syntax error, say Syntax Error (your line number here)
I will start
Code:
000 Option Explicit On
That's very similar to some of the requirements I get here at work. The old "just start coding and I'll get you the requirements tomorrow".
Please remember next time...elections matter!
-
Mar 27th, 2015, 07:18 AM
#5
Lively Member
Re: Lets Build a Program
Originally Posted by TysonLPrice
That's very similar to some of the requirements I get here at work. The old "just start coding and I'll get you the requirements tomorrow".
It's either that or "here's some buggy, unstable code written twelve years ago. Make it work."
"Bones heal. Chicks dig scars. Pain is temporary. Glory is forever." - Robert Craig "Evel" Knievel
“Leave me alone, I know what I’m doing.” - Kimi Raikkonen
-
Mar 27th, 2015, 10:28 AM
#6
Re: Lets Build a Program
that's easy...
Code:
001 On Error Resume Next 'Gotta sneak this in before the close.
that should take care of any errors.
-tg
-
Mar 27th, 2015, 11:07 AM
#7
Re: Lets Build a Program
000 Option Explicit On
001 On Error Resume Next 'Gotta sneak this in before the close.
002 GC.Collect < Your missing this vital line !!!!
003 Me.Close
Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you
-
Mar 27th, 2015, 11:11 AM
#8
-
Mar 27th, 2015, 11:12 AM
#9
Re: Lets Build a Program
I'd like to see where this goes.
Code:
002 Option Strict On
-
Mar 27th, 2015, 01:37 PM
#10
Re: Lets Build a Program
Code:
003 Public Structure Vector
-
Mar 27th, 2015, 03:20 PM
#11
Re: Lets Build a Program
Code:
004 Private _x As Int32
-
Mar 27th, 2015, 08:34 PM
#12
Re: Lets Build a Program
Code:
005 Dim Enchilada As Boolean
-
Mar 28th, 2015, 07:47 AM
#13
Re: Lets Build a Program
Code:
006 Public X As Integer
-
Mar 28th, 2015, 09:28 AM
#14
Re: Lets Build a Program
It was a dark and stormy night....
Please remember next time...elections matter!
-
Mar 28th, 2015, 03:26 PM
#15
Re: Lets Build a Program
Code:
007 'I am not sure where this is going, but it looks great.
-
Mar 28th, 2015, 04:16 PM
#16
Re: Lets Build a Program
Code:
008 Public Y As Integer
I feel like were a bunch of monkeys trying to get an automobile running lol
-
Mar 28th, 2015, 07:32 PM
#17
Re: Lets Build a Program
Originally Posted by NeedSomeAnswers
000 Option Explicit On
001 On Error Resume Next 'Gotta sneak this in before the close.
002 GC.Collect < Your missing this vital line !!!!
003 Me.Close
Have you tried declaring any of these at form scope?
-
Mar 28th, 2015, 07:51 PM
#18
Re: Lets Build a Program
Originally Posted by TysonLPrice
It was a dark and stormy night....
Code:
Dim Lights As EnergySavingMeasure
BB
-
Mar 29th, 2015, 03:53 PM
#19
-
Mar 29th, 2015, 06:56 PM
#20
Re: Lets Build a Program
Code:
010 Public Structure Vector3
-
Mar 29th, 2015, 10:21 PM
#21
Re: Lets Build a Program
Code:
011 Public X As Integer
-
Mar 30th, 2015, 08:40 AM
#22
Re: Lets Build a Program
Code:
012 Public Y As Integer
FYI It's bad practice to use Public variables over Public properties.
-
Mar 30th, 2015, 09:19 AM
#23
Re: Lets Build a Program
0013 Label01:
Guess where I plan to GoTo with that line of code...
Please remember next time...elections matter!
-
Mar 30th, 2015, 09:53 AM
#24
Re: Lets Build a Program
Private HellFreezesOver as boolean = False
Burn the land and boil the sea
You can't take the sky from me
~T
-
Mar 30th, 2015, 10:04 AM
#25
Re: Lets Build a Program
I normally don’t play with these threads but this did make me laugh so according to the rules:-
Code:
014 Dim myRandom As New Random
-
Mar 30th, 2015, 10:04 AM
#26
Re: Lets Build a Program
Code:
015 MessageBox.Show(String.Join(" ", Enumerable.Range(0, myRandom.Next({"you", "are", "all", "going", "Bonkers", "when", "marriage", "should", "be", "the", "most", "memorable", "Time", "in", "your", "life", "however", "fun", "things", "can", "happen", "when", "you", "least", "expect", "them", "to"}.Length - 1) + 1).Select(Function(x) {"you", "are", "all", "going", "Bonkers", "when", "marriage", "should", "be", "the", "most", "memorable", "Time", "in", "your", "life", "however", "fun", "things", "can", "happen", "when", "you", "least", "expect", "them", "to"}(myRandom.Next(0, {"you", "are", "all", "going", "Bonkers", "when", "marriage", "should", "be", "the", "most", "memorable", "Time", "in", "your", "life", "however", "fun", "things", "can", "happen", "when", "you", "least", "expect", "them", "to"}.Length))).ToArray), "Warning! Bonkers Going On Here!", MessageBoxButtons.OK, MessageBoxIcon.Warning)
-
Mar 30th, 2015, 11:15 AM
#27
Re: Lets Build a Program
Error 015
You cant have a messagebox in a structure
Delete 015
-
Mar 30th, 2015, 11:22 AM
#28
Re: Lets Build a Program
Code:
015 Public Z As Integer
-
Mar 30th, 2015, 01:10 PM
#29
-
Mar 30th, 2015, 01:13 PM
#30
Re: Lets Build a Program
Code:
017 Public Module VectorConversions
-
Mar 30th, 2015, 03:12 PM
#31
Re: Lets Build a Program
Code:
020 REM This is a prime example of why our projects miss deadlines and go over budget
-tg
-
Mar 30th, 2015, 11:04 PM
#32
Re: Lets Build a Program
Code:
021 Public Vec As Vector3
-
Mar 31st, 2015, 04:45 AM
#33
Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you
-
Mar 31st, 2015, 04:07 PM
#34
Re: Lets Build a Program
Error 022
Can't put values in variables in the general declarations. Only for initialization
Delete 022
-
Mar 31st, 2015, 04:34 PM
#35
Re: Lets Build a Program
Code:
022 Public Function ConvertToVector2(ByVal value As Vector3) As Vector2
-
Mar 31st, 2015, 05:29 PM
#36
Re: Lets Build a Program
Code:
023 Dim Result As Vector2
-
Apr 1st, 2015, 10:38 AM
#37
New Member
Re: Lets Build a Program
Code:
024 Result.X = value.X
-
Apr 1st, 2015, 12:10 PM
#38
Please remember next time...elections matter!
-
Apr 1st, 2015, 01:55 PM
#39
Re: Lets Build a Program
026 MsgBox "April Fools!"
Please remember next time...elections matter!
-
Apr 1st, 2015, 03:15 PM
#40
New Member
Re: Lets Build a Program
Originally Posted by TysonLPrice
025 Goto Label01
Error 025
Label01 does not exist
Delete 025
Delete 026
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
|