| | |
Factorial Calculate
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2007
Posts: 66
Reputation:
Solved Threads: 1
i use procedures
u have to rename some words in these code as it is my code
like (txtfirstnum.text = ur text box ) (txtanswer.text= ur answer box) thats all i think
VALIDATION
FACTORIAL
of course u have to call it in ur command button code
am still a beginner thats all i can help u any problems contact another members
Remember with other members u'll have to try something first
without effort they will not help u
hope this help
u have to rename some words in these code as it is my code
like (txtfirstnum.text = ur text box ) (txtanswer.text= ur answer box) thats all i think
VALIDATION
vb.net Syntax (Toggle Plain Text)
Public Sub validation() If txtFirstNum.Text = "" Then MsgBox("First Number is Empty") ElseIf Not IsNumeric(txtFirstNum.Text) Then MsgBox("First Number is not numeric") Else call factorial endif endsub
FACTORIAL
vb.net Syntax (Toggle Plain Text)
Public Sub factorial() Dim counter As Integer Dim result As Long Dim x As String = (Val(txtFirstNum.Text)) counter = 1 result = 1 While counter <= x result = result * counter counter = counter + 1 txtAnswer.Text = result End While End Sub
of course u have to call it in ur command button code
vb.net Syntax (Toggle Plain Text)
Private sub cmdcalculate_click(.) call validation endsub
am still a beginner thats all i can help u any problems contact another members
Remember with other members u'll have to try something first
without effort they will not help u
hope this help
Last edited by manutd4life; Sep 1st, 2008 at 4:44 pm.
![]() |
Similar Threads
- Factorial of a big number (C++)
- User functions (C++)
- help me to do operator overloading n class (C++)
- Sum of Series help (C++)
- Beginner in Java: need a help (Java)
- Factorial program (Java)
- Calculate the factorial of a number (Visual Basic 4 / 5 / 6)
Other Threads in the VB.NET Forum
- Previous Thread: VB.NET
- Next Thread: Data not showing up in DataGrid
| Thread Tools | Search this Thread |
.net .net2008 30minutes 2005 2008 access account arithmetic array basic bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog filter folder ftp generatetags google gridview hardcopy images input insert intel internet mobile monitor ms net networking objects output panel passingparameters peertopeervideostreaming picturebox picturebox1 port position print printing problem problemwithinstallation project save searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer timespan toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year





