Save The Answer Into Database After Divide The 2 Different Numbers?
Aug 24, 2009
Dim fault As Double
Dim ng As Integer
Dim input As Integer
[code]....
Halo, may i ask how can i save my answer fault into database after i done division. I am taking the data from textbox(input data) and done the back coding division.
View 1 Replies
ADVERTISEMENT
Jan 10, 2010
Basically, I want to divide two numbers together and they should be 2 random numbers from 1-12 (I have done that part) but, the answer should be a whole number (i.e. Integer, so no decimal points etc) So, I did the following:
' Initialize the random-number generator.
Randomize()
' Generate random value between 1 and 12.
Dim value5 As Integer = CInt(Int((12 * Rnd()) + 1))
[code]....
but the problem here is that the program crashes after only a few clicks on the button. So I guess the question is: How can I make the program generate two numbers (from 1-12) that when divided become a whole number?(Is there any code that may tell the random generator that I want the numbers to be even?-so all even numbers from 1-12?)
View 2 Replies
Jun 6, 2011
I am quite sure I am gonna feel real dumb when I found where I am screwing up but I am ALMOST done with a fraction calculator (part of a complete algebraic calculator I am making) and am stuck when trying to reduce my fraction because when I hit the reduce button, it only divides the answer by the first number in my listbox instead of all of the numbers.[code]...
View 2 Replies
Mar 28, 2010
how can i add two excel sheets with numbers and the equal (similar)numbers to save once
View 1 Replies
Apr 8, 2010
i am going to create one system which is related to test skill and it is in VB.Net and access database it has a question and four answer. both are coming from database,my problem is how do i change answer sequence everytime.whenever user tried for the test, answer sequence should be different.
View 14 Replies
Oct 3, 2009
how to Check Exist Database in SQL And Message box Show Answer?
View 4 Replies
Oct 2, 2010
how do i retrieve password in database using secret answer and email address and put the answer on label1.text? this is my code Private Sub btnRet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRet.Click
Dim con As New OleDb.OleDbConnection
Dim dbprovider As String
Dim dbsource As String
Dim ds As New DataSet
Dim da As OleDb.OleDbDataAdapter
Dim sql As String
[Code]...
View 1 Replies
Aug 28, 2011
I'm started my project and here is my code.
con.Close()
con.Open()
com.CommandText = "SELECT * from math.questions where number ORDER by rand() limit 1"
[code].....
View 1 Replies
Oct 2, 2010
how do i retrieve password in database using secret answer and email address and put the answer on label1.text? [Code]
View 2 Replies
Mar 8, 2010
I have a masked text box for phone numbers. i want to save the results as a double but it includes the parenthesis and dashes. what would be the best way to remove the mask and save only the numbers?
View 5 Replies
Jan 5, 2010
How to save and load the numbers that i put in the textboxes of my program
View 14 Replies
Jan 8, 2012
I'm using oracle data provider for .net :Oracle.DataAccess.dll vesrion : 2.111.7.2Now just fire a select all statement usind OracleDataAdapater to generate the BUG (Attempted to divide by zero)
Dim conn As new OracleConnection(sConnectionString)
Dim dt As New DataTable
conn.Open()
[code].....
View 1 Replies
Jan 7, 2011
I want to divide to bigintegers, but with standart division it only gives a result with only the integer part, not the floating part. How can I get the all result with floating part?
View 8 Replies
Jun 1, 2011
Is it possible to divide a function into sections, something like this?
Function myFunc
Section
Dim i As Integer = 0
...
End Section
[code]....
View 2 Replies
Nov 2, 2011
How to divide a wav file into two parts. I don't very know how to implement this functionality. If possibly, can you give me detailed code snippet or other some useful link.
View 4 Replies
Nov 8, 2008
i want to store the employees quarter sales and at the same time i want them to average with the companies quarter sales any ideas?
[URL]
Code:
Const intNUMBER_OF_EMPLOYEES As Integer = 10
Const intMAX_EMPLOYEE As Integer = intNUMBER_OF_EMPLOYEES - 1
' class level variables
[code].....
View 2 Replies
Jan 5, 2011
consider the following code and comments:
Console.WriteLine(1 / 0); // will not compile, error: Division by constant zero
int i = 0;
Console.WriteLine(1 / i); // compiles, runs, throws: DivideByZeroException[code].....
This test seems to corroborate the idea and a literal double of 0.0 is actually a very, very tiny fraction which will result in Infinity...
View 4 Replies
Jun 6, 2011
Is there a function in VB.net that allows me to divide a really long String into a specific number of characters? [code] The length of this string is 18 and I'd like to group it by 3, so each group would contain 6 characters. Is there an easier way of doing this? Is there a predefined function in VB.net? I'm already thinking of doing it manually, like converting the string into characters and storing them inside arrays.
View 1 Replies
Apr 11, 2009
How do i divide an array into small 5 arrays.it is a byte array
View 2 Replies
Jul 26, 2010
I want get integer quotient when I divide two values. Per example
X=3
Y=2
Q=X/Y = 1.5 // I want get 1 from results
X=7
Y=2
Q=X/Y=3.5 //I want get only 3 from results
View 4 Replies
Nov 9, 2009
i have two textboxes where a numeric value will get entered into both, these values will then be taken and the first value divided by the second value. The problem i am having is that if for example the first value is 11 and the second value is 10, when i divide 11 by 10 the result is 1. I have tried setting the output format to have 2 decimal places but it still displays 1 instead of 1.1. [Code]
View 4 Replies
Sep 15, 2009
How would I get a button to divide and multiply?
View 7 Replies
Apr 17, 2010
I have a problem in the division among the ranks of the Data Grid sub
Have you design a program that the user choose which material and a number of students in this article and the class and a number of students in grade
For example, if the number of students in Grade 10 students
The number of students selected for the Article 10 The English language program to include material in a cell alone < English >
Though the number of selected students of history 5 and the number of students selected for geography 5 The program develops articles on each Some
History
Geography
To signify that we have five students who went to the study of history goes the rest in the same proportion to the study of geography
how can I do that as it is in the first image attached to you my sincere
View 2 Replies
Sep 8, 2009
If
strOperand = "/" Then
intLast = intFirst / Val(
Me.TextBox1.Text)
I'm not getting a remainder like I would have hoped. I'm new and I'm sorry for the lack of intelligence on the subject. To my understanding the Val( function will convert the string to a number, but when I divide it gives me a single number instead of an integer.
View 4 Replies
Jan 21, 2011
Let say I had a project contains 10 forms and 10 reports and typed dataset (xsd)I am trying to divide my project forms into dlls, so when the client had a problem or asks for modification in single forms, I had to build the project all over again and the exe size will be large.
in my current project, the exe size is 4.8 MB, and I am working with customers by internet and remoting, so every time I make small changes (change the back color of textbox in one form) I had to rebuild and send the whole 4.8 MB to the customer. And not forgetting the increasing size of the exe with time.I know that converting my project to class library and built it will convert it to dll, so I had to create a second project to manage it.
1 - Can I convert 3 or 4 forms / 10 forms total in my current windows application project to dll?
2- What is the best recommended method to divide the project into smaller entity.
View 19 Replies
Nov 19, 2010
can anyone teach me how to save data in microsoft access database and retrieving it back from database?[code]so, how do i save it in that and how do i load their data by typing their ic no only..
View 5 Replies
Oct 15, 2009
Ive created one database Sql Server Compact Edition 2005, with one table ("Cliente") I know that I can created my database good, but i have a problem saving information since three textbox, in my table(With columns "Nombre" "Apellido" "Cliente". In my form there is a button save ("Guardar"). When I do click in my button appear the next message : "The column cannot contain null values. [ Column name = Nombre,Table name = Cliente ] " and happen the same with apellido and Id_Cliente. And this happen becouse my code cant save the information....
This is the code
Option Explicit On
Option Strict On
Imports System
Imports System.IO
Imports System.Data
[CODE]...
And the code for my button is:
Private Sub cmdguardar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdguardar.Click
Dim myconnection As SqlCeConnection
Dim mycommand As SqlCeCommand
[CODE]...
View 2 Replies
May 1, 2012
1. First off, how do I make my path to my database relative? The path is currently absolute and is: Data Source=J:/College/AS_DSFinalDatabase1.accdb
2. Second of all, where do I save my database in the project? I want it to be included in like project folders...kind of like the App_Data folder in ASP.Net.
3. I'm recieving an error whenever I try to populate more than 1 DataGridView upon form load for some reason...I've tried 5 different ways of writing the code, and I get the same error...there's no error description, so does anyone know what the issue is? Here's the error:
View 5 Replies
Apr 9, 2012
I have a combo box in my visual basic program and would like it to display text when the database has numbers.
For example, the database has values 1,2,3,4 and I would like the combo box to display "Lifo", "Fifo", Weighted Average" and "Specific Identification".
View 3 Replies
Nov 28, 2011
i have wrote a loop to search for duplicate numbers within a column in a database which i have got fine but when i find a duplicate i would like to get the all of the row so if 33 was a duplicate i would like to get the following row.
33MarkWhitesideM12/07/1958Michaeluuu
I have tried to do this buy use something i saw on msnd's website:
Dim foundRow() As Data.DataRow = customerDS.Tables("Details").Select("HNCNO Like '33%'")
However if i change the line to notice the i beside the like
Dim foundRow() As Data.DataRow = customerDS.Tables("Details").Select("HNCNO Like 'i%'")
but i get Index was outside the bounds of the array. Ok i know that means that there is nothing in my array. What i would like is to find the duplicate row associated i. you will probably understand me better when you see the code.
Private Sub checkRowsForDups()
Dim customerDS As DataSet
Dim dupArray As New ArrayList
[Code].....
View 9 Replies