VS 2008 Find Highest Number Of All?
Sep 27, 2009
What is the right way to find Highest decimal number out of 10 different numbers(or more)? I made this code below, and surprisingly it doesn�t work every time! All numbers are declared as decimals but some times 0.02 is a higher number then 0.11!
If n2 > (n3 And n4 And n5 And n6 And n7 And n8 And n9) Then
TextBox11.Text = n2
End If
[Code]....
View 6 Replies
ADVERTISEMENT
Apr 26, 2009
I have a group of 3 numbers:
-SideA
-SideB
-SideC
I need a way to detect which one is the largest, and which is the smallest, and assign them to a variable.If SideA is the largest, then it is variable C, and SideB is the smallest, so its variable A, leaving SideC as variable B
View 2 Replies
May 10, 2011
Create a program where the user can find the highest number and the smallest number from a list of values It needs to operate as follows: Enter a value (number) in the TextBox and click on a button [Add to list]. Once this is done, the program analyzes if the number is the highest entered or the smallest. To view which is the smallest and largest, a second button [highest and lowest] will populate fields (texboxes) with highest and lowest numbers. I've attached an image of what the program should look like.
View 4 Replies
Jun 7, 2009
I have a table named as table1 with IDNo column and the ID numbers starts with HL, EL, EE, HE plus the year and a four digits. [code]On form load, the user will select from radio button which category he/she would like to work on, whether HL, EL, EE, HE. Let's say that the user selected HL, I would like to get the highest number in table1 and extract the last 4 digits truncating any zero digit starting from the left side and update table2's sequence column with the extracted value.
View 20 Replies
Nov 9, 2010
Dim MyVal As Integer
Dim MyVal2 As Integer
MyVal = Val(TextBox4.Text)
[code]......
View 4 Replies
May 8, 2011
I created a code that inserts a number into a row every time someone submits a form.I am able to read the data back to the form using a loop.My confusion is I would like to get the highest number from the data field(column)Lets say the Field(column) has five numbers from 1 to 5.How do I get the highest number?I was looking at using a loop to go through the field and bring out the highest number, but should I use an array?
View 5 Replies
May 16, 2012
I have a file which has numeric values like [code]What would be the best way to display the highest number in a textbox +1?I have the following coding but to be honest it just keeps showing random numbers in the textbox.[code]Also what would you be the best way to append to the file? I have the following coding to append to the last line.[code]
View 5 Replies
Dec 3, 2009
i'm trying to check whats the highest rev number in a folder (file names are 123456_rev01.*, 123456_rev02.*).
here is my code
For j = 1 To File.Exists("c: est123456" & "*" & j & ".*") = False
MsgBox("looking at rev" & j)
j = j + 1
[Code].....
View 4 Replies
Feb 25, 2011
I know how to get Total, Average, Highest and Lower number from using input boxes and so on, but how do you get them from within a listbox?I kno the format of the code, I'm just lost in how to get them from a listbox...I just need a few hints.
View 7 Replies
Nov 14, 2009
I'd like to know how to sort an array that has entries with numbers after text.
I have a list of four entries:
Book 1
Book 2
Book 11
Book 12
Using Array.Sort(aBooks) returns
Book 1
Book 11
Book 12
Book 2
Is there a way to have it sort lowest to highest like 1 2 11 12 instead of 1 11 12 2?
View 3 Replies
Jun 14, 2012
I am new to using VB2010 (and coding in general). Also brand new to these forums . Okay so I am making a program that: allows the user enter the number of customers served for each of 12 months into an array. The application should calculate and display the following statistics: total number of customers for the year, the average monthly number of customers, and the months with the highest and lowest numbers of customers. Use inputBox to get user input. Do not accept non-numeric or negative numbers.
The problem that I am having is that I do not know how to display which was the best and worst month. I imagine I need something that targets the highest/lowest number and finds the text in the corresponding index but I'm not sure how to do this.
View 2 Replies
Jan 9, 2010
I don't know if I worded this properly, but I have a mdb query that I display in a Datagrid on my form. The first column is TransactionNumber, which is the primary key and a running total (ex. RackingTransactionKey=RackingTransactionKey + 1). What I need to do is when the form is opened, find the highest (last) TransactionNumber from the query or Datagrid and assign it to a variable (RackingTransactionKey), so I can can update it (+1), therefore generating a unique number so I can add data to the query.
[Code]...
View 13 Replies
Oct 31, 2009
How do I find the getelementID number? GetElementById("i0116") < what is that number? is that the number of one of the email / password box?
View 8 Replies
Mar 13, 2009
Let's say I have a label which looks like this:
2 12 22 25 27 31
then i generate numbers.How can I try to find a number using a integer.I tried:
VB
If label1.text.contains(integer)msgbox("found match!")End If
But it matches each number. For example if it is 3 in the integer if say that there is a match because it finds the "3" in 31 etcHow can I make it find the whole "3"?
View 3 Replies
Jul 20, 2009
I am creating a sailing score points program and want to create something like: what TEXTBOX has got biggest number that is between (TEXTBOX IS BETWEEN NOT THE NUMBER) [ and ] And it's subtracts that number what is in that box from the textbox3 when possible then how to do like:
under textbox are four checkboxes Named: DNS, DNF, DSQ and OCS and they give so much points how many are the sailers + 1. The setting name is Sailers
(Scoring system is ISAF low-point 2005-2008)
View 14 Replies
Jan 5, 2012
I got a problem with dataview that get data from datatabel (Col1 : ID,Col2: Time) and I'm sorting by Time in desc ... when the values for example {40.21,80.21,70.25,25.2} the dataview sorting them as I need but when one of values goes above 100 for example {40.21,80.21,100.25,25.2} the dataview always sort the highest number is the buttom, I don't know why ..
This is a sample code
Dim dt As New DataTable
dt.Columns.Add("ID")
dt.Columns.Add("Time")
[CODE]...
View 2 Replies
Jul 20, 2009
I got this code to get the highest value from a dataset, but it now doesn't work properly. I think it only gives me the last row but not the highest value.
Dim adMaxRec As New SqlDataAdapter("select serviceid from service", nwindconn) 'where custid = '" & cutidtext & "'
Dim dsMaxRec As New DataSet
adMaxRec.Fill(dsMaxRec)
Dim maximumrecord As String
maximumrecord = dsMaxRec.Tables(0).Compute("Max(serviceid)", "")
View 5 Replies
Jul 23, 2010
i have an array consist of ({9,2,10,5,7}) and i have a total = "17".
the question is, how do i find which sum of array that match the total ??
do you people know the algorithm or in vb.net language ??
the number in array not always the same and so the total is. that is just an example.
View 3 Replies
Jul 6, 2011
search a dataset table and search a column within that table for a value than if the value is true in the column find out which row number it was on
View 7 Replies
Jun 22, 2010
Suppose I have a number[code]...
View 4 Replies
Sep 6, 2011
For example, black is 0, how can I find out what number other colors are?
View 12 Replies
Mar 9, 2009
,how to find the number of words presented for a page in the pdf file using itextsharp. To get total number of page--reader.NumberOfPages.Like wise i need how to get total number of words for a page.
View 6 Replies
Jan 6, 2011
If I have four items in the listbox, e.g. a, b, c, d, how can I find the name by knowing from the top the item is number 3 (c)?
View 6 Replies
Aug 25, 2009
How do I check to see if the first character of a string is a number in VB.NET? I know that the Java way of doing it is:
char c = string.charAt(0);
isDigit = (c >= '0' && c <= '9');
View 3 Replies
Jan 25, 2012
I have a Credit Card Number in an XML Message and I want to use a regex to find the Credit Card Number and encrypt it. All numbers are 16 characters long and they are not always in the same place in the xml, so basically I think I just need to find a string that is 16 characters and decrypt it, but I am not sure how.
[Code]...
View 2 Replies
Jan 12, 2011
how to find the factor of a number using textboxes and arrays? i dont seem to understand the whole layout
View 2 Replies
Feb 17, 2010
I have ten numbers like 1.1,2.5,3.7,4.9,5.4,6.2,7.6,8.9,9.0,3.56
How I can find the largest number in the group?? I can do comparison of two number and repeat the process but it is very long, is there any other ways??
View 1 Replies
Feb 8, 2011
How to find the number for sentences in a String data ? Edit: Ok I came up with this after following Wipqozn's method
Dim str As String = "This . is . a . text."
Dim maxCount As Integer = str.Count
Dim intSent As Integer = 1
[code].....
View 3 Replies
Apr 15, 2011
i am trying to find the sin (any number *Pi) but for some reason its not working. the result i am getting is the answer of (sin(any number)) * pi here is an example of my
Answer.Text = Sin(variable1 * Math.PI)
****note variable1 is user input
View 5 Replies
Mar 4, 2012
How can i find the week number in a month.
A month can have 5 weeks, i need to know in which week i am.
View 2 Replies