Food Clan .::. Zombie Assassins
image Navigation image
 
· Search Our Site

· Join [ZÅ]

Important Links
· Home
· Special Requests
· Allies & Friends

Features
· Newsletter
· Fan Fiction
· YouTube Page
· Hall of Fame

Rules & Information
· Website Rules
· Membership Rules
· Server Rules & Info
· Classic Server Password Test
· The History of [ZÅ]
· Site & Server Admins
· Staying Safe Online


Other
· News Categories
· Downloads
· Photo Gallery
· Hall of Shame
· I DON'T THINK RAZ IS GOD
 
image image
image Last Seen Users image
 
· [ZÅ]SlimJim 2 days
· [ZÅ~V]Stuntman 4 days
· [ZÅ]Noobo 3 weeks
· [LÅZY]LazyTarget 6 weeks
· [ZÅ~V]DrkInferno12 weeks
· [ZÅ]Riptide22 weeks
· ZA Flax23 weeks
· [ZÅ]ODST-LoL26 weeks
· [ZÅ]JP27 weeks
· lkshadow31 weeks
· [ZÅ]MasterA41 weeks
· [ZÅ]Giants41 weeks
· [ZÅ]Dudeman41 weeks
· [ZÅ]Link-MC--LoL-CSGO43 weeks
· [ZÅ]Razberry43 weeks
· [ZÅ]Innervision47 weeks
· [ZÅ~V]Phoenix50 weeks
· [ZÅ~V]BrickSquad61 weeks
· {FC}Cookie64 weeks
· [ZÅ]Bvigil67 weeks
· [ZÅ~V]Boxhead68 weeks
· [ZÅ]Vlexis75 weeks
· {FC}Wings75 weeks
· [ZÅ~V]Buck76 weeks
· {FC~V}Coyote144 weeks
· [ZÅ~V]TheHatofLove150 weeks
· Kennan157 weeks
· [ZÅ]Paradox-MC-158 weeks
· zuko174 weeks
· A§H»ĴΘΘĶ181 weeks
· [ZÅ]Vaxjo184 weeks
· coldplay99184 weeks
· [ZÅ~V]RAGE184 weeks
· samtheman32189 weeks
· [ZÅ]ninja189 weeks
· [ZÅ]Code189 weeks
· FRINGE190 weeks
· [ZÅ]Leve190 weeks
· [ZÅ~V]Ezrab190 weeks
· BMF190 weeks
· MRBILL190 weeks
· [ZÅ~V]Hercules192 weeks
· ginny18231 weeks
· [ZÅ~V]Cloverton269 weeks
· [ZÅ]Carnage-WoWs285 weeks
· [ZÅ]Mist-Stn286 weeks
· theatticus294 weeks
· [ZÅ~V]Star298 weeks
· [ZÅ~V]Neo302 weeks
· [ZÅ]Saviour310 weeks
· [ZÅ~V]Irock23311 weeks
· [ZÅ]Revenge-Stn321 weeks
· Habu327 weeks
· [ZÅ~V]Althor338 weeks
· Founder~[ZÅ~V]Trunks339 weeks
· [ZÅ~V]Llamas344 weeks
· [ZÅ~V]Bagels347 weeks
· Founder~[ZÅ~V]Coke353 weeks
· Teemo353 weeks
· Rabidtaco353 weeks
· [ZÅ~V]BlackAdder-LoL360 weeks
· [ZÅ~V]Ice368 weeks
· Hav375 weeks
· [ZÅ~V]Huggy380 weeks
· [ZÅ~V]RealmHunter381 weeks
· [ZÅ]Tulip-LoL-CSGO383 weeks
· [ZÅ~V]Pizzleini387 weeks
· [ZÅ~V]Martyr388 weeks
· Java394 weeks
· SpartanJaz398 weeks
· [ZÅ~V]Luna398 weeks
· [ZÅ~V]Kíttý412 weeks
· [ZÅ~V]Sinder414 weeks
· arbiterspar420 weeks
· Bacon425 weeks
· Magnum429 weeks
· H4WK437 weeks
· [Lagzy]448 weeks
· [ZÅ]Whatmesage455 weeks
· [ZÅ~V]Suika458 weeks
· Zidane458 weeks
· [ZÅ~V]Pieeater459 weeks
· [ZÅ~V]Numpty459 weeks
· [ZÅ]Swicey459 weeks
· [ZÅ~V]ChAr459 weeks
· Smile.jpg459 weeks
· Ronald459 weeks
· Bane459 weeks
· [ZÅ]Soulcyon-LoL459 weeks
· TacoCookie459 weeks
· [ZÅ]Buckwheat459 weeks
· [ZÅ~V]PirateKing-LoL460 weeks
· ShawnPeezy471 weeks
· [ZÅ~V]JOSEPH5485 weeks
· xXKrysisXx491 weeks
· Chuck491 weeks
· Homeless492 weeks
· Warrior493 weeks
· [ZÅ~V]Smurf495 weeks
· JunkyMonkey495 weeks
 
image image
image View Thread image
 
 Print Thread
Won't Compile
Dudeman
#1 Print Post
Posted on 07/16/2014 13:41:00
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

Anyone know Visual Basic? I have a feeling it's the Console.WriteLine w/company name&cost but not sure

Download source  Code

Module Module1

    Sub Main()
        'local variables
        Const fiberCost As Double = 0.87
        Dim companyName As String
        Dim numFeet As Double = 0
        Dim totalCost As Double = 0
        Console.Write("Enter company name: ")
        companyName = Console.ReadLine()
        Console.Write("Enter number of Fiber: ")
        numFeet = Console.ReadLine()
        totalCost = numFeet * fiberCost
        Console.WriteLine("Your company " + companyName + "had a total cost of $ " + totalCost +)
        'this causes apause so you can see your program
        Console.Write("Press enter to continue...")
        Console.ReadLine()
    End Sub



Edited by Dudeman on 07/16/2014 16:57:49
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
ninja
#2 Print Post
Posted on 07/16/2014 15:35:49
User Avatar

Super Admin


Posts: 4174
Joined: 15.11.10

Use code tags when posting code!

I don't know VB but I would guess that Console.ReadLine() returns a string so it doesn't like you trying to store it as a double and do arithmetic with it.

For the console writing line, check whether you can concatenation strings with doubles, and you probably want to remove that last plus.
Edited by ninja on 07/16/2014 15:37:45
steamsignature.com/status/english/76561198019046882.png

i.imgur.com/EzcOjDS.png
My brain is open.
- Paul Erdős
 
Send Private Message
Mist
#3 Print Post
Posted on 07/16/2014 16:19:29
User Avatar

Numpty


Posts: 1242
Joined: 22.07.13

Is it me or does anyone else not understand this language?
 
Send Private Message
Dudeman
#4 Print Post
Posted on 07/16/2014 16:58:33
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

ninja wrote:
Use code tags when posting code!

I don't know VB but I would guess that Console.ReadLine() returns a string so it doesn't like you trying to store it as a double and do arithmetic with it.

For the console writing line, check whether you can concatenation strings with doubles, and you probably want to remove that last plus.


Edited for your viewing pleasure XD and I'll take a look at that ReadLine() Grin
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
RazNinjaMike
#5 Print Post
Posted on 07/17/2014 06:48:58
User Avatar

Moderator


Posts: 4586
Joined: 20.11.10

i believe dudeman is trying to get the boobs on his desktop background to move
 
Send Private Message
Dudeman
#6 Print Post
Posted on 07/17/2014 09:01:27
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

RazNinjaMike wrote:
i believe dudeman is trying to get the boobs on his desktop background to move


It's finding a companies cost to put in Fiber Optic Cable between two buildings :/
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
ninja
#7 Print Post
Posted on 07/17/2014 10:38:11
User Avatar

Super Admin


Posts: 4174
Joined: 15.11.10

Did you manage to debug it?
steamsignature.com/status/english/76561198019046882.png

i.imgur.com/EzcOjDS.png
My brain is open.
- Paul Erdős
 
Send Private Message
Dudeman
#8 Print Post
Posted on 07/17/2014 14:50:26
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

easy and yes.....it was the addition signs, they were supposed to be ampersands (&)

I think pseudocode has the addition signs to seperate calling for variables and actually quoting them.

TLDR; I just mixed up VB with Pseudocode rookie mistake :/

P.S. After this class I'd love to shoot the shit with some of you other programmers. I think it's fairly easy moving from language to language as long as you are alright at Pseudocode. Or so I hear. Hell, we can always use more programmers in the clan. amiright?
Edited by Dudeman on 07/17/2014 14:53:03
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
ninja
#9 Print Post
Posted on 07/17/2014 17:33:48
User Avatar

Super Admin


Posts: 4174
Joined: 15.11.10

Dudeman wrote:
easy and yes.....it was the addition signs, they were supposed to be ampersands (&Wink

I think pseudocode has the addition signs to seperate calling for variables and actually quoting them.

TLDR; I just mixed up VB with Pseudocode rookie mistake :/

P.S. After this class I'd love to shoot the shit with some of you other programmers. I think it's fairly easy moving from language to language as long as you are alright at Pseudocode. Or so I hear. Hell, we can always use more programmers in the clan. amiright?

Many languages overload + for string concatenation, so that's probably why you've seen that and used it.
This Stackoverflow post explains the problem you had: http://stackoverf...-in-vb-net
In essence, the compiler tried to cast your string to a double and add it to the double (since + is a numerical operator). However, you wanted to concatenate the string with the double, so you're best off using the & which is reserved for string concatenation.
steamsignature.com/status/english/76561198019046882.png

i.imgur.com/EzcOjDS.png
My brain is open.
- Paul Erdős
 
Send Private Message
Smurf
#10 Print Post
Posted on 07/25/2014 12:05:27
User Avatar

Wanker


Posts: 552
Joined: 11.06.12

It looks like your doing good so far. From what the code looks like, you have a bit of C+ and VB mixed in it. Haven't seen much of this because C+ and C++ is so much more in depth than actual VB. This is my code for writing/reading lines in VB.

Here is the code to write to the file:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
FileIOPermissionAccess()
If TextBox1.Text = "[ZÅ]" Then
MsgBox("Enter a Player's name to add them.", MsgBoxStyle.Exclamation, "Error"Wink
Else
File.AppendAllText(c, TextBox1.Text & vbCrLf)
TextBox1.Text = "[ZÅ]"
MsgBox("Player Added to the list", MsgBoxStyle.Information, "Saved!"Wink
ReadFile()
End If


Here is the code to read the file (Readfile())

Private Sub ReadFile()
Try
ComboBox1.Items.Clear()
a = File.OpenText(c)
While a.Peek <> -1
b = a.ReadLine()
ComboBox1.Items.Add(Cool
End While
a.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try


The Readfile() I have to create on my own so I could make a call to the code. The Readfile() will call the sub in the button1_click then also close the file so it doesn't stay open in RAM

If you need any help dudeman, you can message me over the site or catch me on Xfire when I am on. I have two semesters of VB and have all the programs from the first semester. Unfortunately I wasn't able to recover second semesters code off my failing HDD
Edited by Smurf on 07/25/2014 12:07:58
i771.photobucket.com/albums/xx359/Firedeval46/smurf_you_by_rodakrodak_zps504bbe26.jpg
i771.photobucket.com/albums/xx359/Firedeval46/smurfcopy_zpsc8795677.jpg
 
Send Private Message
Dudeman
#11 Print Post
Posted on 07/26/2014 04:42:55
User Avatar

Super Admin


Posts: 1277
Joined: 03.01.12

Smurf wrote:
It looks like your doing good so far. From what the code looks like, you have a bit of C+ and VB mixed in it. Haven't seen much of this because C+ and C++ is so much more in depth than actual VB. This is my code for writing/reading lines in VB.

Here is the code to write to the file:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
FileIOPermissionAccess()
If TextBox1.Text = "[ZÅ]" Then
MsgBox("Enter a Player's name to add them.", MsgBoxStyle.Exclamation, "Error"Wink
Else
File.AppendAllText(c, TextBox1.Text & vbCrLf)
TextBox1.Text = "[ZÅ]"
MsgBox("Player Added to the list", MsgBoxStyle.Information, "Saved!"Wink
ReadFile()
End If


Here is the code to read the file (Readfile())

Private Sub ReadFile()
Try
ComboBox1.Items.Clear()
a = File.OpenText(c)
While a.Peek <> -1
b = a.ReadLine()
ComboBox1.Items.Add(Cool
End While
a.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try


The Readfile() I have to create on my own so I could make a call to the code. The Readfile() will call the sub in the button1_click then also close the file so it doesn't stay open in RAM

If you need any help dudeman, you can message me over the site or catch me on Xfire when I am on. I have two semesters of VB and have all the programs from the first semester. Unfortunately I wasn't able to recover second semesters code off my failing HDD


Sounds good, bud I may have to take you up on that. I received a 88 on my midterm this week Grin but the assignments are sometimes difficult.
steamsignature.com/profile/english/76561198038766087.png
 
Send Private Message
Smurf
#12 Print Post
Posted on 08/07/2014 17:31:43
User Avatar

Wanker


Posts: 552
Joined: 11.06.12

Dudeman
Sounds good, bud I may have to take you up on that. I received a 88 on my midterm this week Grin but the assignments are sometimes difficult.


Hey no problem. I passed my VB class with flying colors. This shit is my life now. I can't stop typing code ~modpower~

If im not on xfire. Message me over the site and I should get an email from it. If not, just email me at my address and I will definitely get it - Spidyshood@yahoo.com
Edited by Smurf on 08/07/2014 17:46:07
i771.photobucket.com/albums/xx359/Firedeval46/smurf_you_by_rodakrodak_zps504bbe26.jpg
i771.photobucket.com/albums/xx359/Firedeval46/smurfcopy_zpsc8795677.jpg
 
Send Private Message
Jump to Forum:
 
imageimage
image Login image
 
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
 
image image
image Shoutbox image
 
You must login to post a message.

Drkinferno
04/30/2026 16:29:13
not dead

stunt1man
02/17/2026 17:22:06
Still alive. ~B_Slap~

Hobo
02/16/2026 21:44:26
Wassup gang ~craptacular~

stunt1man
01/30/2026 12:29:22
Anytime I post something in the thread, it's not visible.

stunt1man
01/27/2026 20:09:23
The ISP blocked you.

Target
12/29/2025 21:50:19
Ditto! Grin

stunt1man
12/28/2025 16:40:54
Happy new year. ~noob~

Target
11/27/2025 12:34:23
Happy Thanksgiving :3

Target
10/31/2025 09:30:28
Happy Halloween everyone! Smile

Target
10/25/2025 09:09:20
https://www.youtub
e.com/watch?v=AMGJ
7OMqyvI woah

stunt1man
10/24/2025 16:32:18
Hola Papi!

Link
09/29/2025 23:37:58
OMG HI GUYS!!! I was able to finally log in after so many years!!! I hope everyone is doing well in life! Man, time flies!

RazNinjaMike
09/26/2025 06:40:34
if you dont got discord, go get it. its great for chatting as well Cool

stunt1man
09/21/2025 11:10:02
~Nana~

Drkinferno
09/15/2025 20:05:42
no, I log in time to time

stunt1man
09/07/2025 12:26:37
~argue~

Innervision
08/30/2025 14:52:46
Hope everyone is doing well, good ol shoutbox lol Smile

stunt1man
07/31/2025 18:41:06
I had replied to the thread and it broke. ~ban?~

FC_SlimJim
06/22/2025 20:43:11
idk what happened with that thread cause i cant access it either lol

Drkinferno
05/25/2025 20:05:26
I can't access it either lol

 
image image
image image