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Å]Giants 4 weeks
· [ZÅ]Razberry 5 weeks
· [ZÅ~V]Stuntman 6 weeks
· [ZÅ]SlimJim 7 weeks
· [ZÅ]Noobo10 weeks
· [LÅZY]LazyTarget13 weeks
· [ZÅ~V]DrkInferno20 weeks
· [ZÅ]Riptide29 weeks
· ZA Flax30 weeks
· [ZÅ]ODST-LoL33 weeks
· [ZÅ]JP34 weeks
· lkshadow38 weeks
· [ZÅ]MasterA48 weeks
· [ZÅ]Dudeman48 weeks
· [ZÅ]Link-MC--LoL-CSGO50 weeks
· [ZÅ]Innervision54 weeks
· [ZÅ~V]Phoenix57 weeks
· [ZÅ~V]BrickSquad68 weeks
· {FC}Cookie71 weeks
· [ZÅ]Bvigil74 weeks
· [ZÅ~V]Boxhead76 weeks
· [ZÅ]Vlexis82 weeks
· {FC}Wings82 weeks
· [ZÅ~V]Buck83 weeks
· {FC~V}Coyote151 weeks
· [ZÅ~V]TheHatofLove157 weeks
· Kennan164 weeks
· [ZÅ]Paradox-MC-165 weeks
· zuko181 weeks
· A§H»ĴΘΘĶ189 weeks
· [ZÅ]Vaxjo191 weeks
· coldplay99191 weeks
· [ZÅ~V]RAGE191 weeks
· samtheman32196 weeks
· [ZÅ]ninja196 weeks
· [ZÅ]Code197 weeks
· FRINGE197 weeks
· [ZÅ]Leve197 weeks
· [ZÅ~V]Ezrab197 weeks
· BMF197 weeks
· MRBILL197 weeks
· [ZÅ~V]Hercules200 weeks
· ginny18238 weeks
· [ZÅ~V]Cloverton276 weeks
· [ZÅ]Carnage-WoWs292 weeks
· [ZÅ]Mist-Stn293 weeks
· theatticus301 weeks
· [ZÅ~V]Star305 weeks
· [ZÅ~V]Neo309 weeks
· [ZÅ]Saviour317 weeks
· [ZÅ~V]Irock23318 weeks
· [ZÅ]Revenge-Stn328 weeks
· Habu334 weeks
· [ZÅ~V]Althor345 weeks
· Founder~[ZÅ~V]Trunks346 weeks
· [ZÅ~V]Llamas351 weeks
· [ZÅ~V]Bagels354 weeks
· Founder~[ZÅ~V]Coke360 weeks
· Teemo360 weeks
· Rabidtaco361 weeks
· [ZÅ~V]BlackAdder-LoL367 weeks
· [ZÅ~V]Ice375 weeks
· Hav382 weeks
· [ZÅ~V]Huggy387 weeks
· [ZÅ~V]RealmHunter388 weeks
· [ZÅ]Tulip-LoL-CSGO390 weeks
· [ZÅ~V]Pizzleini394 weeks
· [ZÅ~V]Martyr396 weeks
· Java401 weeks
· SpartanJaz405 weeks
· [ZÅ~V]Luna406 weeks
· [ZÅ~V]Kíttý419 weeks
· [ZÅ~V]Sinder421 weeks
· arbiterspar428 weeks
· Bacon432 weeks
· Magnum436 weeks
· H4WK444 weeks
· [Lagzy]455 weeks
· [ZÅ]Whatmesage462 weeks
· [ZÅ~V]Suika465 weeks
· Zidane465 weeks
· [ZÅ~V]Pieeater466 weeks
· [ZÅ~V]Numpty466 weeks
· [ZÅ]Swicey466 weeks
· [ZÅ~V]ChAr466 weeks
· Smile.jpg466 weeks
· Ronald466 weeks
· Bane466 weeks
· [ZÅ]Soulcyon-LoL466 weeks
· TacoCookie466 weeks
· [ZÅ]Buckwheat466 weeks
· [ZÅ~V]PirateKing-LoL467 weeks
· ShawnPeezy478 weeks
· [ZÅ~V]JOSEPH5492 weeks
· xXKrysisXx498 weeks
· Chuck498 weeks
· Homeless499 weeks
· Warrior500 weeks
· [ZÅ~V]Smurf502 weeks
· JunkyMonkey502 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.

RazNinjaMike
08/07/2026 16:28:22
hmm

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

 
image image
image image