199,114 Archived Topics
Remove Filter ![]() | |
hello guys ! here's my code , how can i put my data into adodc2 from adodc1 ? look .. there's some error there .. do help me .. Private Sub Command1_Click() Frame3.Visible = True Frame1.Visible = False Frame2.Visible = False Text3.Text = Val(qtyOnHandTxt.Text) * Val(Text1.Text) End Sub Private Sub … | |
I am having some problems with my "sum of numbers program," and cannot figure out why I am not getting the correct answers. This is my first Assembly programming class, so take it easy on me, please. The assignment is: Prompt a user for an integer n, compute the sum … | |
I have a LAN connection with my project and I need to display a running time and date of with labels anyone have an idea? is it curdate and curtime? | |
I have been looking around the internet all day looking for a way to stop my program from entering an infinite loop when the user enters anything except a number when I cin an int. For example: [CODE] while(blah blah) { int x; cin >> x; if(x == 4) break; … | |
Hey, Is there a way, by using find, to create a method that finds the last occurrence of a character in a string? I know how to use the find method to find the first occurrence but have no idea how to do it backwards. Basically this is what I … | |
I am having a problem with setting JButtons so the are not opaque to i can see the image behind them. I also have a JTextfield and here it is working, I dont know what i am doing wrong, I'm creating a gui for the mainmenu of my game. here … | |
How can I ensure that the stored procedure below is able to use either one or all the parameters to filter records from a table? CREATE PROCEDURE ABC @StartDate datetime = null, @EndDate datetime = null, @UserId varchar(255) = null, @AccNo varchar(255) = null AS BEGIN IF @StartDate IS NULL … | |
Hi, When i run the codes i donot get an error, howveer after clicking INsert i get the Syntax error in Insert Into statement error. I do recieve the COnnected MsgBox which then results in the error My code.. Sub connect() Dim acsconn As OleDbConnection = New OleDbConnection _ ("Provider=Microsoft.jet.oledb.4.0;data … | |
Seem to be having trouble. The trouble i'm having is the calculateAverage, and a bit of the public static main void area. I'll explain: calculateAverage: What i'm suppose to do is read from the txt file. I tried doing the inFile.nextDouble part, but seem to be getting errors. i'm not … | |
I need helping thinking though something. I am pulling dates, Year, Month of that year and an amount. I then want to go to the next year. So, 2010 then 12 rows of the months with amounts, then 2011 then 12 rows of the months printed out with amounts... Ex: … | |
Hi, In the following code (Class & Form1), I'm trying to figure out the following: - Create an array that stores the 'Clients' (first name, last name, account number) - 'Button List' the array with the (First Name , Last Name , Array Value , Account Balance) I attached the … | |
Hi, I am trying to "Show" an error message for the user in two cases: 1. If he/she did not enter a correct value for a String. 2. If he/she did not enter a correct value for a Decimal. I know I have to use Try & Catch but each … | |
Hello guys. Im using visual studio 2005 and access 2007 as database. I have already connect the database which have two table with two gridview in a web form (asp.net). Now i want to compared the data in the two gridview, and those who are matching should be displayed in … | |
Hello All, I'm in the process of making a GUI for a search engine, I have never coded a GUI before so just experimenting with user input in Textfields and also the use of ActionListeners and i'm having a slight problem. My code can pick up what the user has … | |
Attached is my code for my homework for my C++ class. My problem comes from when I run the program. It returns a value of 1 every single time for the output of the "is it a leap year or not" part of my program. Then, when it outputs the … | |
Hello, I am trying to make a random number generator (its not really a random number generator, more a random order generator) that puts the numbers 1, 14 in a random order, without duplicating the numbers. That is the problem I am having it will often select the same number … | |
[CODE]#include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <termios.h> int main() { int fd; int wd=0; unsigned char buff[] = { 0x02, 0xFA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x23, 0x01, 0x21, 0x03}; fd = open("/dev/ttyS0", O_RDONLY | O_NOCTTY | O_NDELAY ); if (fd == -1) … | |
Ok, The problem is that when I execute this program (C++) what ever numbers I put into the answer slot it is given me the answer to the numbers of what ever I choose whether it would be Add, Subtract, Multiply or Divide as a Sum and not Difference or … | |
Hi can you advise if this is possible and how please? I have a cmd line program which i want to run "PPP.exe test" i then get a response saying i am in the program, then i need to send further perameters. "set username Bill" - i will get a … ![]() | |
I have created a new website . With access db inside app data folder. . And hosted in server. . Bt it is not retrievind or updating db datasg . Why it is happening ? | |
I am trying to complete an assignment, but first need to get the program to run. I get a debug error, "numberArray being used without being initialized. Am I'm missing something? I am using three functions. one to get the highest number in an array, second to get the lowest … | |
Hello can anyone help me with sorting this struct by name and surname? Ive done like this and it doesn't sort it. Thanks Code: [CODE]#include <iostream> #include <string> #include <vector> using namespace std; struct student { int st_studenta; string vpisna; string ime; string priimek; }; student vpis(int st_studenta) { student … | |
Below is the code which is supposed to redirect to a page once the whole form is filled up, the code works like a charm on my XAMPP server (localhost) , but as i uploaded my pages to my hosting area, the page stops redirecting, all it does is come … | |
Hi all, Ive searched all of the web to help me, and Ive asked various people. Ive got a binary search tree program to write in MIPS, but I really have no idea where to start. Ive got the program in C++, but I dont have linux to attempt to … | |
I am using Doctrine as my ORM and it only reads XML/YMAL files and I was given a schema in form of MySQL script. Is their anyway to dump a MySQL db to a ymal file? | |
I have been trying to figure this out for a while and have found some answers, but I can't seem to make them work. I have a datagridview bound to a datatable. I want replace one of the cells with a combo box and bind that combobox to one of … | |
Hello to all, I am calling connection string from app.config string str = ConfigurationManager.ConnectionStrings["Bank"].ConnectionString; SqlConnection con = new SqlConnection(str); my app.config file is <configuration> <connectionStrings> <add name="Bank" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=D:\BankManagement(2)\BankManagement\bin\Debug\BankManagement.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /> </connectionStrings> </configuration> bt i am getting compilation error: Error 1 A field initializer cannot reference the non-static … | |
need a complete code for a car class with the following attributes; make model colour registration no of seats wheel type (alloy or hubbed) engine size (in cc) | |
Write a program that finds the factorial value of a given number as shown. Display an appropriate error message if the number entered is negative, or too big for the answer to be correctly calculated. Enter a non-negative integer : 5 5 x 4 x 3 x 2 x 1 … | |
I have 2 perl files. 1st file is my main program and the 2nd is a small sub which I call by using system("file.pl"); I would like to reuse a stored value/s in variables from the main program and use them in the external file. How is this possible? | |
I have looked this up and cant seem to find a solution. Nothing I can find will work with my code. I really need help because i am doing this for a class project and nothing will work. Heres what i'm trying to get it to work with. [CODE] import … | |
Hi, I am a new programmer of vb.net. My combobox1 has a value of name1, name2, name3, and i want that if the user already choose name1, he/she cant re use that name1 again. and that is autosaved to sql database. help me please! | |
//int main(){ //char8 au8_X1[6]={0x91,0xD4,0x80,0x70,0x81,0x20}; //char8 au8_X2[6]={0x6E,0x2A,0xF5,0X8C,0x7A,0xF8}; //i8vec_add(char8* pi8_a, char8* pi8_b, uint8 u8_cnt) // This subroutine adds the contents of two integer arrays // The number of elements to add given by cnt #include "pic24_all.h" #include <stdio.h> void i16vec_add(int16* pi16_a, int16* pi16_b, uint8 u8_cnt) { while (u8_cnt != 0) { //do … | |
Hi.. I am trying to write a k nearest neighbor and BART bayesian additive regression tree algorithm for identifying Spam emails in php Can any1 guide me on how to implement these algorithm ? This is for my thesis..im just learning php.. If some one could give me sample code … | |
Hi, I coded some web applications (blog, message board) all in procedural way, and now I want to start doing all that with planing and clean and extensible code. I now that OOP is the way, I checked MVC system of programming, and everything seems nice. I already know syntacs … | |
im trying to get the insert to work but the problem i am facing is i keep getting this error Can someone help please thanks in advance my code is [CODE]Dim strsql As String = "Insert into cg_security_user (user_name,user_pwd) values (@field1,@field2) " Dim acscmd As New OleDb.OleDbCommand ' the oledbcommand … | |
i am try to systemdate and rem_date compare but error message is "Incorrect Syntax near'='" [CODE] Dim adp As New SqlDataAdapter("select * from reminder", obcon.con) Dim dset As New DataSet adp.Fill(dset) datagridview1.DataSource = dset.Tables(0) obcon.con.Open() Dim cmd As New SqlCommand("select rem_id,rem_hour,rem_min from reminder rem_date=" & Date.Now.Date.ToString & "", obcon.con) MsgBox("select … | |
Seem to be getting a can't find symbol error. Not quite sure how to fix it. Yes this is a homework problem, this is what I have done so far. [CODE] public class Flight { public String location = "Gate"; public String number; public Airport origination; public Airport destination; public … | |
Hi there. I'm having a slight bit of trouble when using a multi level case statement in my program. I'm not sure if it's because you shouldn't use case statements inside of case statements or if it's because I haven't yet learned enough about using them. Basically I want to … | |
Hello guys! Can you help me this type of error? Run-time error '8574': The object 'Employee ID:' was not found This is the code: [CODE]Private Sub cmdPreview_Click() Dim rsq As New Recordset rsq.Open "SELECT * FROM qRecord where EmpID = " & Val(txtEmpID.Text) & "", con, adOpenStatic, adLockReadOnly, addUnknown If … | |
print the pattern 1 1 1 1 1 1 2 2 2 1 1 2 3 2 1 1 2 3 2 1 1 2 2 2 1 1 1 1 1 1 | |
I know how to replace any image that cannot be found with a default image with the .htaccess file but I was wondering if it could be done when there is not URL. For example if I have this: [CODE]<img src="" alt="Picture" />[/CODE] It would not show up, I was … | |
Hi, I would like to know how to set the textbox to only accept numbers, also that will only accept numbers 1,2 & 3 only. Thanks in advanced. :icon_mrgreen: i tried but i really don't know how. | |
Given the following instructions ADD Rx,Ry,Rz ;Rx <- Ry + Rz ADDI Rx,Ry,Imm ;Rx <- Ry + Immediate Value NAND Rx,Ry,Rz ;Rx <- NOT (Ry AND Rz) Show how you can use the above instructions to achieve the effect of the following: CLR Rx ;Rx <- 0 I am a … | |
Hello! Im having trouble with reversing string in this program: [CODE]#include <iostream> #include <string> using namespace std; int numChars(string besedilo[]) { int znaki=0; int vrstica=0; for(int a=0;a<10;a++) { vrstica=besedilo[a].length(); znaki=znaki+vrstica; } return znaki; } int numWords(string besedilo[]) { int besede=0; string vrsta; for(int a=0;a<1;a++) { vrsta=besedilo[a]; for(int b=0;b<besedilo[a].length();b++) { if(vrsta[b]==' … | |
I have a [I]fairly[/I] simply query that is taking a long time when run from C# via [icode]MySql.Data.MySqlClient.MySQLCommand[/icode] but the same query runs about 100x faster when I run it through the MySQL Workbench (GUI utility) Here's the code in C#: [code] tCom.CommandText = "(SELECT ID, Timestamp FROM jobdata WHERE … | |
Hi everyone, I'm a moderate-level C++ programmer who is a little rusty at the moment. I've got an object question which is driving me nuts. I'm sure this is a C++ 101 level question, but for the life of me, I can't recall the solution. Basically, I've got one object … | |
Im coding my first Java applet for a University project and im having issues. Im in the process of coding a search and information function. When the user clicks anywhere in the applet a black circle appears under the cursor, when they then press the information button, information about that … | |
hi every 1. i am trying to make a customer registration form. On the form i want to display the employee ID or Employee name who is servring or registring the customer. In short the employee who is logged in the system ,his Name or id should appear in the … | |
I have to do a program in which I create two NumericUpDown controls and the user will input a minimum value in one and a maximum value in the other. Then, when the user hits the calculate button, it should show a Message Box containing all even numbers between the … |
The End.