Quick SQL Insert statement question involving variable
H - I appreciate any help on this... This works: Dim cmd2 As New SqlCommand("INSERT INTO tblRep (project, remdev) VALUES ('" & ProjectIDComboBox.Text & "', '2')", cs) cmd2.ExecuteNonQuery() But...
View ArticleTrying to print an array, getting ascii code instead.
import java.util.Arrays; public class TestSort { public static void main(String[] args) { Comparable[] compList; compList = new Comparable[4]; compList[0] = "Bob"; compList[1] = "Dan"; compList[2] =...
View ArticleNeed help with programming (setting up GUI for program)
So my first homework was to create a program that creates a collection of items (I used a clothing collection) and each item has 5 attributes. That was fine but now my next assignment is to set up a...
View ArticleTicTacToe Win Condition, 2d Array
Hey, I am trying to setup my win condition as a 2d array. However, I am unable to store objects as a 2d array, so How would I do this? Public arrayWin(3, 3) As Object = {btnBoard1, btnBoard2,...
View ArticleString Format problem
Well I tried to return a string into the listbox, but the items doesn't align even. This is my ToString, the three value is from getting value. public override string ToString() { return...
View Articleinsert sort
The following recursive algorithm for insert sort is faulty. Can anyone help me to figure out the mistake? //precondition:Array is sorted till (n-1)th element or index n-2. //postcondition:array is...
View ArticleQuick SQL Delete statement question
Hi - can any one see whats wrong with my delete statement? Dim cs As New SqlConnection("myconnectionstringinhere") cs.Open() Dim cmd As New SqlCommand("DELETE * FROM tblRep", cs) cmd.ExecuteNonQuery()...
View ArticlePrinting the numbers greater than average from Array.
Hi guys, I am trying to print out all the numbers that are greater than the average number onto the screen. I believe it is set up correctly, as I am putting the numbers into a second array and then...
View ArticleCan`t get text using GetMenuItemInfo
Hi Everyone, I need to get the menu text from an external window. I can get the Enabled/Disabled state and the Checked/Unchecked state without a problem but, when it comes to the text all i can get is...
View ArticleSentinel controlled while-loop problem
Hi everybody, I'm new to this site, so please bear with me and give me suggestions as to how I can improve my question-asking. If you need more information, please tell me. I'm writing a test driver...
View ArticleMonodevelop
I was just wondering if theres anyway you can use XNA framework in Monodevelop IDE?
View ArticleLinked list within a linked list
im completely stuck on how to make a linked list within a linked list. i know how to create a linked list: A linked list class class SingleSortedLinkedList : #constructor def __init__ (self) :...
View ArticleLinked list within a linked list
im completely stuck on how to make a linked list within a linked list. i know how to create a linked list: #A linked list class class SingleSortedLinkedList : #constructor def __init__ (self) :...
View ArticleEnumerating Battery Devices
0 down vote favorite I am using windows api to get various hardware info such as cpu usage and battery info. I have been trying to get the names of the names of the battery devices by following this...
View ArticlePayroll Assignment
Hello guys ! I need some help with my Java Assignment ... Assignment: http://screencast.com/t/NmLcx7OlA I'm stuck from the begging until the c part. I have no idea how to do a loop that reads every...
View Articleis JFrame alive? O.O
public void runBitchRun() { int i=30; int y=30; while(true) { JFrame jframe = new JFrame(); jframe.setVisible(true); jframe.setLocation(i,y); i++; y++; } }
View ArticleCreate Front View of Vending Machine Program
Hi everyone! So I am trying to create a front view of a vending machine program. I will post my program below. It is working right for the most part, except I need the parts that say "Price," "$1.25"...
View ArticleWhich is better practice for creating an array
Hey, I was wondering which is better practice, both work fine.. Dim strWin As Object = {btnBoard1, btnBoard2, btnBoard3, btnBoard4, btnBoard5, btnBoard6, bt9nBoard7, btnBoard8, btnBoard9 } if...
View Articlefragment code question
this fragment was on a past exam; Consider the following code fragment: int x=2, y=4; char ch; cin >> x; cin.get(ch); cin >> y; cout << x * y; 7) If the user types the following at...
View ArticleJava equivalent to "in" in python
In python you could do something like: someString= "2 + 3" if "+" in someString: do things else: do other things what is the java equivalent to "in"?
View Article