199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RobertKramers

Hi there, Im getting the error above, when i run my code. [code] string myCommand = "SELECT * FROM Manager WHERE UserName=" + ID; SqlDataAdapter da = new SqlDataAdapter(myCommand, con); DataSet ds = new DataSet(); try { con.Open(); da.Fill(ds); [B]// <- highlighting this part of the code..[/B] } finally { …

Member Avatar for samuelmac
0
3K
Member Avatar for bLuEmEzzy

ei guys, i am stuck in getting unchecked in listview... pls help me... thank u :) this is my code... [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For Each item As ListViewItem In ListView1.Items If CheckState.Unchecked Then MsgBox(ListView1.Items.Item(0).SubItems(1).Text) End If Next End Sub [/CODE]

Member Avatar for bLuEmEzzy
0
158
Member Avatar for sarifah n

hi i want to ask about how to disable the button when the datagrid have 9 rows? i want to control the button.after the datagrid have 9 rows, then the button.enabled=false. tq.

Member Avatar for sarifah n
0
135
Member Avatar for Giorgio33

I have the coordinates of n points and I need to calculate the distance between each point until the other points. 2 0 3 0 0 5 2 1 ... ... ... I am beginner in C + + and I've worked a lot before asking for help. Already, I …

Member Avatar for WaltP
0
91
Member Avatar for erum

i have this code in aspx page [CODE] <div id=date_check visible=true runat=server> <strong>Check-In Date</strong> <asp:TextBox ID="txt_checkin" runat="server" onchange="checkdate(this);"></asp:TextBox> <a href="javascript:calendar_window=window.open('calendar.aspx?form1=form1.txt_checkin','calendar_window','width=554,height=488');calendar_window.focus()"> <img alt="" src="images/calendar.png" /> </a> <strong>Check-Out Date</strong> <asp:TextBox ID="txt_checkout" runat="server" onchange="checkdate(this);"></asp:TextBox> <a href="javascript:calendar_window=window.open('calendar.aspx?form1=form1.txt_checkout','calendar_window','width=554,height=488');calendar_window.focus()"> <img alt="" src="images/calendar.png" /> </a> </div>[/CODE] [CODE]<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="calendar.aspx.vb" Inherits="gfln1.calendar_aspx" %> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for erum
0
294
Member Avatar for yashum

I want to start development for IPad. I own a late model mac mini and want to use xcode 4 for development. What education materials should I use to to accomplish this? Thanks.

Member Avatar for jingda
0
74
Member Avatar for stavros141

Ok so I have this project in ming for along time now. Basically I have created a console app that works as a calculator by using mathfunctions from a DLL I also have created. Now the problem is I want to make it so that people can create their own …

Member Avatar for stavros141
0
191
Member Avatar for banannamoofin

I am currently having problems displaying a file correctly once i have written a dictionary to the file. For this program the input file needs to have the format: ID: Date: Dayskept: ProductName e.g. 1:12/12/2011:12:A This is fine the first time I read the example file into a dictionary, but …

Member Avatar for TrustyTony
0
213
Member Avatar for nayefc

Hello Everyone, I am trying to emulate a T9 (cellphone) keyboard in C. So lets say a user types in the numbers "23", a possible word combination would be "be". In my question here, I will only write down a part of what I have assuming it only works for …

Member Avatar for L7Sqr
0
209
Member Avatar for fabricetoussain

hello there, im given an assignment to basically prompt user to enter name, start time, end time, am or pm, and the pay rate and from that information i need to calculate number of hours worked and how much they get paid for the day, but im very stuck. please …

Member Avatar for fabricetoussain
0
334
Member Avatar for terexberd

Hey i wanted to know if there's a program that shows u a pattern on how they got the number if i give them 3 examples? for Ex: 1) 35777903801230601 (Encrypted) = 46071642 (Decrypted) 2) 35777903248036801 (Encrypted) = 43975216 (Decrypted) 3) 35777903508068601 (Encrypted) = 91756761 (Decrypted)

Member Avatar for VernonDozier
0
213
Member Avatar for sirpampos

I have an assignment until next week and i don't know hot to complete it In the program in c we have to help a cat escape from a dog which has double speed. The program works as follows : the data of the program are read from the file …

Member Avatar for StuXYZ
0
106
Member Avatar for DelphiGuy

Hello guys, basically I have two Delphi applications which I want to communicate and work with each other, the only problem is I don't know how. Can anyone help me create a as simple as possible programs so that when I press a button in the first program, it would …

Member Avatar for DelphiGuy
0
1K
Member Avatar for wewehalim

Hi, I am running this line of code to insert some data into table. I am using select case on one of the data. When I run it, this error was generated: "Syntax error (missing operator) in query expression 'CASE dbo_tblFinanceApp.UPADisclosed WHEN 0 THEN 'Undisclosed' WHEN -1 THEN 'Disclosed' END' …

Member Avatar for wewehalim
0
250
Member Avatar for sirpampos

I have an assignment until next week and i don't know hot to complete it In the program in c we have to help a cat escape from a dog which has double speed. The program works as follows : the data of the program are read from the file …

Member Avatar for sirpampos
0
119
Member Avatar for plasticfood

ok i have this assignment which i'm just having problems with the iterator part of it. from the [B]ListType [/B]class, this is what i wrote: [CODE] public Iterator iterator(){ return new OrderedStringListTypeIterator(list); } [/CODE] this code is from the textbook which idk how they got theirs to work, but... [CODE]import …

0
69
Member Avatar for loveu

how to fix the errors? [CODE]package app.util; import java.io.*; import java.util.ArrayList; import java.util.List; import app.obj.Book; public class BookDatabaseReader { public BookDatabaseReader() { bookDatabase = new File("C:"+File.separator+"User"+File.separator+"Marissa"+File.separator+"Desktop"+File.separator+"eto na"+File.separator+"dat"+File.separator+"bookdb.txt"); } public List<Book> getAllBooks() { List<Book> bookList; bookList = new ArrayList<Book>(); BufferedReader reader = null; reader = new BufferedReader(new FileReader(bookDatabase)); for(String str = …

Member Avatar for sirlink99
0
804
Member Avatar for aldm

Hi, I have a problem. I'm working on one project. I want to find file which contains site logo words. Ftp has a tone of files, so I can't search file by file. I guess there is no way to get content of .php file in string? So I can …

Member Avatar for aldm
0
113
Member Avatar for Suzie999

Hello all. If there is one aspect of any language I cannot understand it is regex. I have some strings I need to parse, of varying length and content, but there are patterns. There 2 base types the first always begins with [B]%zn%[/B] and can be short or long and …

Member Avatar for Suzie999
0
120
Member Avatar for lacoffo

Hello everyone :) I'm learning Java and I'm creating a pong game. There is something I don't understand how to do though. It's how do I make it so that when a button in one panel is pushed, it calls a method in another panel. Let me quickly explain the …

Member Avatar for lacoffo
0
862
Member Avatar for amie900218

hello, need help from you guys. ok, i have create a prompt box that will ask user to enter a password, and this prompt box will take user to secured page. [CODE] <script type="text/javascript"> function show_prompt() { var name=prompt("Please enter your password","Fill Here"); if (name!=null && name!="") { location.href="index.php"; } …

Member Avatar for amie900218
0
131
Member Avatar for anirban1087

Hi, I am working on some php based job. When I am accessing the pages from the same system (localhost) using IE, its work fine. But when I am trying to open the pages from a remote system using IE, the php part is not displaying. But Firefox is giving …

Member Avatar for diafol
0
135
Member Avatar for leo88

Hi,i am doing window form using VB C#. My problem as below: Dictionary<string, double> sortList1 = new Dictionary<string, double>();//contain key and //values Dictionary<string, double> sortList2 = new Dictionary<string, double>();//empty // do events int j = 0; foreach (double doub5 in sortList1.Values) { holder = (doub5 * 100 / richTextBox2.Lines.Length) * …

Member Avatar for leo88
0
97
Member Avatar for user543820

Hello! I am writing a code of linked list in which user can insert or delete names but the list must remain sorted alphabetically. I have written the given piece of code by now but it is not correct. Please help me out. I took help from this link: [url]http://stackoverflow.com/questions/2941368/sorting-names-in-a-linked-list[/url][code]//function …

Member Avatar for mike_2000_17
0
336
Member Avatar for senthamilgsa

I tried to execute a php code using Wamp Server and PHP 5. it didn't work with me properly. When i executed it All times the php code content itself is coming not the things we expect. I tried with NetBeans IDE too. It returned as Connection Failed. How to …

Member Avatar for smantscheff
0
189
Member Avatar for ben25x

I have figured out how to create command buttons and have tried to change their general color, but to no avail. This is what I tried, but it did nothing: [CODE]Option Explicit Dim WithEvents Com As CommandButton Private Sub Form_Load() Set Com = Me.Controls.Add("vb.commandbutton", "BtnName") With Com .Left = 100 …

Member Avatar for WaltP
0
4K
Member Avatar for da10x

Hello, for this assignment, we have to imitate SW Airline's boarding process. I think I have everything working so far, except for the fact that my program ignores every Passenger entered into the queue except the first one. It's almost as if it bypasses the if statement asking if the …

Member Avatar for da10x
0
430
Member Avatar for branding4you

I have code like this, it shows data when tehre is data but if there is no data i want to say "no records" where am i going wrong? [CODE]<?php require_once('db_conf.php'); $sql = "SELECT * FROM tbl_holidayspecials WHERE fld_country = '$countryname' AND fld_state = '$statename' AND fld_city = '$cityname'"; $result …

Member Avatar for branding4you
0
148
Member Avatar for dospy

what's the difference between: [CODE] // main.h #ifndef X_H #define X_H #include "point.h" // supposing that point.h contains the declaration of Point class class MyClass { private: Point m_Point; //... }; #endif // main.cpp #include "main.h" //... [/CODE] and [CODE] // main.h #ifndef X_H #define X_H class Point; class MyClass …

Member Avatar for dospy
0
116
Member Avatar for kubiak

What a project i must create if i want do some gui´s windows, and put the code after select item, i do graphical sudoku with difficulty. Can someone write me the way, i would like to start with graphic window and after that code and get the code to the …

Member Avatar for kubiak
0
56
Member Avatar for d_panayotov

Hi, I tried searching but I don't know how exactly to describe my question in 2-3 words so I didn't find anything. Is it possible to do something like this?Just to get the idea... I know it doesn't work: [CODE]switch(c){ case '1':{ (...) ; break;} case '2':{ (...) ; break;} …

Member Avatar for L7Sqr
0
129
Member Avatar for Tamlyn

Hey everyone :) I've been working on the first part of a program which I'm doing in 4 steps. Here's the first step which I have completed: Function inputAndValidate This function inputs the time. The time should be entered as two separate values for the hours and minutes. Do not …

Member Avatar for Tamlyn
0
151
Member Avatar for Amillia89

Hai!!! I have a class, Search Class...this class suppose to search the data from the MySQL db...on top of the JFrame, should have two JMenu bar button which is call About Us and Help...the problem is, if you run this code, the JMenu Bar doesn't appear on top of the …

Member Avatar for Amillia89
0
87
Member Avatar for semth94
Member Avatar for grylionxdj

For next loop in qbasic? hey i am taking a beginner's course in programming and i have been asked to tackle this question using the for loop its like i have to write a program that will print the numbers as follows.. 1 12 123 1234 12345 123456 how can …

Member Avatar for Unseen Machine
0
118
Member Avatar for emreozpalamutcu

I'm making a system cleaner on C++ and what would be the best project to use? @ Windows forms application @ Empty project @ Win32 project @ Win32 Console application Note: This project has to have interface it's not console based! Reason why there is console app is you could …

Member Avatar for emreozpalamutcu
0
135
Member Avatar for hypeh

Hi guys, I have a program that searches a large quantity of files and performs tasks on the files. can anyone tell me how to do the following: I want to create a "Searching" window that pops up with a loading bar on it. i want the main window to …

Member Avatar for Mitja Bonca
0
113
Member Avatar for Usmaan

I have two Forms in my project. The first one I made makes the program exit if I hit 'X' button at the top of the window which is obviously normal. But that's not the case with the second form where If I hit the 'X' button then the Form …

Member Avatar for Usmaan
0
104
Member Avatar for davidcraigster

I'm creating a class for a text analysis for letter frequency. I am trying to compile it, but i'm having some problems. Could someone look at this for me? This is what I have so far: [CODE] class Analysis { private: string letters[26]; string text; int count; public: Analysis() { …

Member Avatar for Ancient Dragon
0
836
Member Avatar for arshi9464

I WAS JUST EXPERIMENTING SOMETHING. AFTER COMPILING THIS I GOT THE ERROR: "<identifier>expected x=1;" i have got this error many times, but don't know why this occurs and also i have made the object of the class dabba in the dabba class's main method, is it wise thing to do?????? …

Member Avatar for arshi9464
0
109
Member Avatar for llamaboy

Hi I am trying to store an array into a file. I have tried a few ways but I end up with an extra line at the end of the file. The only way I can do this without the line is by writing [code] ofstream myfile("Stock.txt"); if (myfile.is_open()) { …

Member Avatar for llamaboy
0
3K
Member Avatar for hao90

[CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class SwingAnimation{ Thread th; ImageIcon images; JFrame frame; JLabel lbl; int i = 0; int j; public static void main(String[] args){ SwingAnimation sa = new SwingAnimation(); } public SwingAnimation(){ frame = new JFrame("Animation Frame"); th = new Thread(); lbl = new JLabel(); Panel …

Member Avatar for JamesCherrill
0
120
Member Avatar for kunal_28parikh

Hi, i am new here and complete amateur to PHP. I get the above error on line 2. but i don't get it? Can someone help please? [CODE] <?php function bp_dtheme_add_custom_header_support() { $get_current_scheme = get_option('dev_buddydaily_custom_style'); if(($get_current_scheme == '') || ($get_current_scheme == 'default.css')) { $headerpath = "%s/library/styles/images/default_header.jpg"; } else{ $headerpath = …

Member Avatar for tiggsy
0
304
Member Avatar for Sorcher

So.. I dont know why i cant find a specific tutorial / tip on this, so i'll ask you guys. I'm trying to get $date to get the current date and insert it as the query executes. [CODE]$result=mysql_query("INSERT INTO articles (`loginid`,`title`,`author`,`body`,`date`,`category`) VALUES ('$loginid','$title','$author','$body','$date','$category')") [/CODE] this is my Database. [CODE]CREATE TABLE …

Member Avatar for tiggsy
0
151
Member Avatar for itslucky

Hi Friends, How can I create a number which will be construct with the array values. e.g. [CODE] arr[0]=2 arr[1]=5 arr[2]=8 arr[3]=4 [/CODE] now the number will be, [CODE]int num=2584[/CODE] please help me for this... Thanx...!!!

Member Avatar for Arbus
0
135
Member Avatar for Sorcher

I am trying to update a mysql entry. Getting this error; [CODE]Insert Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('loginid='15',title='Test',author='Sorcher',body=' Yeah just testing this aga' at line 1[/CODE] [CODE]if ($_GET['edit']){ $getedit …

Member Avatar for Sorcher
0
93
Member Avatar for vijiraghs

How can I retrieve an entire database in JSP and compare the first record with the first parameter obtained from a HTML form, the second record with the second parameter obtained from the HTML form and so on..?? Here is my code: MS-ACCESS database:- database name: question table name : …

Member Avatar for vijiraghs
0
111
Member Avatar for d_panayotov

Hello, I have this assignment in C. The problem is that the functions have to be placed in separate files instead of just one. I haven't done that before. It seems code that would have run if the program was written in one file doesn't work when the functions are …

Member Avatar for d_panayotov
0
172
Member Avatar for Shantanu88d

Hi all, I have added a template field in a gridview. In that i have added a radio button. I have written a code which will get row Id of GridView of a row which is having a radiobutton on it checked. Through code i am getting even name of …

Member Avatar for Shantanu88d
0
96
Member Avatar for Asif_NSU

Gaussian elimination is designed to solve systems of linear algebraic equations, [A][X] = [B] This program reads input from a file which is passed as an argument when calling the program. Say the matrix is in file name matrix.txt so we call the program in this way: ------------------------- gauss matrix.txt …

Member Avatar for xNourax
0
1K

The End.