Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,289 of 10,840    |
|    Basil Fawlty to All    |
|    Newbie <--- Help! Computer Volume of Cyl    |
|    13 Mar 05 10:30:17    |
      From: Basil_Fawlty_2004@NOSPAMyahoo.com              Hi everyone, I have an assignment, to create a simple VB program that       computes the volume of a cylinder. The Form is pretty simple, it has a       label and text box for base radius, another for height and another for       volume with an OK button. I have the code to put into the OK button (Which       I've done):              Private Sub OK_Click( ) --not this line       r = Val(radius.Text) --input this line       h = Val(hght.Text) --input this line       pi = 22 / 7 --input this line       v = pi * (r ^ 2) * h --input this line       volume.Text= Str$(v) --input this line       End Sub --not this line                     When I go to run the Build, it complains I have not declared the variables       that you see above. Where do I goto do that? I assume under the label or       text box for the base radius, and so forth, but which one? What do I key       into them that is syntactically correct to match the code I was given to       use?              I am using VB.NET 2003 SE. Please let me know if I need to post more code,       and where I would get it from to post.              My many thanks for any assistance.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca