199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jeannebria

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 …

Member Avatar for ChrisPadgham
0
213
Member Avatar for txhornsfan

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 …

Member Avatar for txhornsfan
0
4K
Member Avatar for easygi

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?

Member Avatar for Reverend Jim
0
424
Member Avatar for Vladnaka

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; …

Member Avatar for Vladnaka
0
475
Member Avatar for nickecarlo

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 …

Member Avatar for nickecarlo
0
143
Member Avatar for scheppy

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 …

Member Avatar for scheppy
0
328
Member Avatar for solomon_13000

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 …

Member Avatar for solomon_13000
0
109
Member Avatar for F_M

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 …

Member Avatar for Phasma
0
676
Member Avatar for kay19

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 …

Member Avatar for foxtich
0
3K
Member Avatar for timwhelan

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: …

Member Avatar for timwhelan
0
251
Member Avatar for Alex_2011

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 …

Member Avatar for Alex_2011
0
1K
Member Avatar for Alex_2011

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 …

Member Avatar for Alex_2011
0
278
Member Avatar for Yousha

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 …

Member Avatar for Reverend Jim
0
2K
Member Avatar for tleverington1

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 …

Member Avatar for tleverington1
0
194
Member Avatar for shreddinit

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 …

Member Avatar for shreddinit
0
296
Member Avatar for Quinncunx

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 …

Member Avatar for ChrisPadgham
0
469
Member Avatar for sridhar.selva

[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) …

Member Avatar for Ab000dy_85
0
264
Member Avatar for dlmagers

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 …

Member Avatar for Ab000dy_85
0
113
Member Avatar for vlowe

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 …

Member Avatar for diafol
0
143
Member Avatar for itsvineethpv

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 ?

Member Avatar for hericles
0
311
Member Avatar for droneerror

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 …

Member Avatar for Lerner
0
120
Member Avatar for minghags

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 …

Member Avatar for jaskij
0
1K
Member Avatar for arihantphp

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 …

Member Avatar for vaishalrs2007
0
231
Member Avatar for remusogarius

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 …

Member Avatar for gingy
0
3K
Member Avatar for serprus

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?

Member Avatar for serprus
0
96
Member Avatar for tenorjazz

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 …

Member Avatar for tenorjazz
0
872
Member Avatar for abhinav1986

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 …

Member Avatar for Mitja Bonca
0
443
Member Avatar for bela_code

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)

Member Avatar for NormR1
0
119
Member Avatar for jimmyraay

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 …

Member Avatar for livinFuture
0
288
Member Avatar for MCLASS80

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?

Member Avatar for d5e5
0
170
Member Avatar for fallen21468

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 …

Member Avatar for fallen21468
0
14K
Member Avatar for bernardz26

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!

Member Avatar for Reverend Jim
0
89
Member Avatar for valox

//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 …

Member Avatar for valox
0
131
Member Avatar for danielbala

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 …

Member Avatar for danielbala
0
101
Member Avatar for zack654

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 …

Member Avatar for veedeoo
0
243
Member Avatar for Farhan_B

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 …

Member Avatar for M.Waqas Aslam
0
142
Member Avatar for vishalchauhan

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 …

Member Avatar for Reverend Jim
0
304
Member Avatar for RawrInYoMouth

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 …

Member Avatar for stultuske
0
314
Member Avatar for Orbea

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 …

Member Avatar for Mitja Bonca
0
144
Member Avatar for dwiniers

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 …

Member Avatar for BitBlt
0
205
Member Avatar for shiva7892

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

Member Avatar for JamesCherrill
0
71
Member Avatar for jonow

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 …

Member Avatar for jonow
0
317
Member Avatar for ynehs

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.

Member Avatar for Jx_Man
0
2K
Member Avatar for Thermalnuke

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 …

0
134
Member Avatar for minghags

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]==' …

Member Avatar for stereomatching
0
392
Member Avatar for skatamatic

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 …

Member Avatar for Ketsuekiame
0
187
Member Avatar for phummon

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 …

Member Avatar for phummon
0
257
Member Avatar for BleepyE

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 …

Member Avatar for BleepyE
0
134
Member Avatar for dilse4sk

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 …

Member Avatar for dilse4sk
0
119
Member Avatar for Galindo

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 …

Member Avatar for skatamatic
0
263

The End.