Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: timothybard ; Forum: VB.NET and child forums
Forum: VB.NET Nov 8th, 2008
Replies: 6
Views: 3,349
Posted By timothybard
I don't see how this makes a 2D array in to a 1D array. All it does is loop through all the 'cells' of the array and stores a number as Index. What, by the way, is rowNum? It is neither declared...
Forum: VB.NET Nov 2nd, 2008
Replies: 5
Views: 1,011
Posted By timothybard
What is the purpose of having the class ArrayTest? I would recommend just having the array in the Sub New().

Please take a look at this code:


Public Sub main()
'Code to create Seats...
Forum: VB.NET Nov 2nd, 2008
Replies: 5
Views: 1,011
Posted By timothybard
I guess I'm still not following... From your code, you are creating an array correctly with the lines


Dim test() As Boolean
test = New Boolean(0 To 10) {}


To read an element from the...
Forum: VB.NET Nov 1st, 2008
Replies: 5
Views: 1,011
Posted By timothybard
I guess I don't know what you need help with. Do you need to know how to use a 2-d array? The problem you posted does not required a 2-d array.

It looks like you understand how to use a 1-d...
Forum: VB.NET Oct 17th, 2008
Replies: 3
Views: 2,129
Posted By timothybard
When you make the query a Group By query, I believe you need to add that you are grouping by all the other fields as well, not just history.Acct_no.


Dim selstrHISTORY As String = "SELECT...
Forum: VB.NET Oct 14th, 2008
Replies: 16
Views: 1,525
Posted By timothybard
Okay, that helps a lot.

Replace this line:
formattedPartString = individualPartSale.partNumberString.ToString(" ")

with this:
formattedPartString = individualPartSale.partNumberString

I...
Forum: VB.NET Oct 14th, 2008
Replies: 16
Views: 1,525
Posted By timothybard
Can you tell me which object and which event the code is in? Since you are using code such as e.MarginBounds.Left, I need to know which object and which event the code is in. What is the name of...
Forum: VB.NET Oct 14th, 2008
Replies: 16
Views: 1,525
Posted By timothybard
Forum: VB.NET Oct 13th, 2008
Replies: 16
Views: 1,525
Posted By timothybard
Where in the code is that line? I don't see a individualPartSale object reference in the code.
Forum: VB.NET Oct 13th, 2008
Replies: 16
Views: 1,525
Posted By timothybard
After copying your code, creating a form and creating the controls that the code refers to, I had to change the following lines

columnString = .partnumTextBox.SelectedText
to
columnString =...
Forum: VB.NET Oct 12th, 2008
Replies: 16
Views: 1,525
Posted By timothybard
I'm not sure what you are trying to do. You have a structure set up, but then you have an array of strings. How are the strings supposed to represent and how does the PartSale fit into everything?
Forum: VB.NET Oct 12th, 2008
Replies: 16
Views: 1,525
Posted By timothybard
With an (8,3) array (nine "rows" by 3 "columns"), I would imagine that you have 8 items and that each item has three fields (Auto Center, Brand 1, Brand 2 and Brand 4)

Please note that my use of...
Forum: VB.NET Oct 12th, 2008
Replies: 16
Views: 1,525
Posted By timothybard
Well, I guess the first part would be how to define an array. To define an array, you use parentheses when you define the array of a variable. For example, instead of Dim num as Integer, to define...
Forum: VB.NET Oct 9th, 2008
Replies: 17
Solved: Guessing Game
Views: 2,324
Posted By timothybard
This project was written in VB6. The keypad is a control array of command buttons. Here is the code to determine which command button out of the array was clicked and changing a label based on the...
Forum: VB.NET Oct 8th, 2008
Replies: 17
Solved: Guessing Game
Views: 2,324
Posted By timothybard
I replied to your e-mail with updated code.
Forum: VB.NET Oct 8th, 2008
Replies: 17
Solved: Guessing Game
Views: 2,324
Posted By timothybard
I have attached a sample project of how I would program a 2 player guessing games where each player picks three numbers. To open the program, unzip the file and open "Number Guess.sln"

Please...
Forum: VB.NET Oct 8th, 2008
Replies: 17
Solved: Guessing Game
Views: 2,324
Posted By timothybard
I've looked through the code. Is there a reason you don't add 3 text boxes for each user and have them type the numbers they want to guess in the text box?

You mentioned that you are using a...
Forum: VB.NET Oct 8th, 2008
Replies: 17
Solved: Guessing Game
Views: 2,324
Posted By timothybard
Okay... as far as the first issue... you mention that the program picks three random numbers okay but that one is being replaced? It sounds like you are storing a different value in the variable. ...
Forum: VB.NET Oct 5th, 2008
Replies: 17
Solved: Guessing Game
Views: 2,324
Posted By timothybard
Of course; I'd be happy to help whenever I can!
Forum: VB.NET Oct 5th, 2008
Replies: 17
Solved: Guessing Game
Views: 2,324
Posted By timothybard
Here is some code that will hopefully point you in the direction you are trying to go:


Private Sub cmdGuess_Click()

dim upperbound as integer
dim lowerbound as integer

upperbound = 100...
Forum: VB.NET Oct 4th, 2008
Replies: 17
Solved: Guessing Game
Views: 2,324
Posted By timothybard
Did you set upperbound and lowerbound to anything?


Private Sub cmdGuess_Click()
Me.Text2.Text = Int((upperbound - lowerbound + 1) * Rnd + lowerbound)

End Sub
Forum: VB.NET Sep 30th, 2008
Replies: 5
Solved: Badly Stuck
Views: 524
Posted By timothybard
The problem you are having concerning "cannot convert string "" to double" is that you have an empty textbox. You need to add code so that if a textbox is blank, then the program does not try to...
Showing results 1 to 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC