User Profile
Collapse
-
Problem with Arrays
I am writing a program that takes a group of integers from a text file. There are 20 or them all between 0-9. I am trying to display the frequency of each digit in a list box. I thought I had the code correct but for some reason it’s off by one. Also I am drawing a blank when it comes to displaying the order of the numbers in the text file but only displaying each number once. My current code is listed down below. Any help would be awesome. Thanks... -
Hey thanks a lot!!!
You defiantly helped me out. -
Problem with loops
Hello, I have two problems I’m having trouble solving. The first involves a program that opens a text file with a bunch of random numbers out of order listed line by line. I have to list the Highest and the second Highest in a list box using loops and if statements. I had no trouble figuring out how to get the highest but how do I go about generating the second highest. The code is listed below....Code:Private Sub btnDisplay_Click(ByVal sender As System.Object,
-
How to start Math.Random at a specific number?
This may be a stupid question but how can you start Math.Random() to start generating numbers after a specific number.
Say the number is 53 how do you call Math.random() so that it will not generate a number lower than 53? -
-
IanSD81 started a topic How to assign a string a numerical value for a drop down box?in Visual BasicHow to assign a string a numerical value for a drop down box?
Does anyone know How to go about having an item in a drop down box which shows up a string but holds a numerical value or to have a word selected in a drop down box and have it hold a value that could be used in a mathematical procedure with a txt box? How to set the results as whats selected in the drop down box as values?
No activity results to display
Show More
Leave a comment: