64,152 Solved Topics
Remove Filter ![]() | |
Hi all, When you add integer ID primary key auto increment, it automatically makes ID for you. But I was pondering on what happens after deleting a record. Does the server automatically adjust all IDs for you or it remains un assigned? For example, I have inserted as follows +------------+-------------+ … | |
Hi all, Im fairly new to java and any assistance would be appreciated. The following should output string values, but if i use text within the creation of the new CD object i get an error, unless i change the content to numbers. I know the driver class is fine, … | |
this is my code [CODE] If Me.txtOldPassword.Text = pwd Then Dim oledbcom1 As New OleDb.OleDbCommand oledbcom1.CommandText = "Update login Set password = ?" oledbcom1.Connection = oledbcon oledbcom1.Parameters.Add("?", OleDb.OleDbType.VarChar) oledbcom1.Parameters(0).Value = Me.txtNewPassword.Text.Trim oledbcom1.ExecuteNonQuery() oledbcon.Close() end if [/CODE] | |
Hi, This is a very simple question. Is it possible to print a one dimensional array into the shape of a grid? For example if I have the follow array: chars arrayofChars[] = {'A', 'B', 'C', 'D', 'E'...}; how can it be printed out as A B C D E … | |
Please I want to build a program in scripting that will start a timer from 60 seconds and decrement every second.There should be an input where the user should be able to enter the secret password to dis-activate the timer-bomb.If the user fails to enter the correct password 3 times … | |
Hi im trying to write a game. Its very early stage but i hit to an error so need your help. Here the code: [CODE]def gexp(): connection = sqlite.connect('test.db') memoryConnection = sqlite.connect(':memory:') cursor = connection.cursor() cursor.execute('SELECT * FROM gain') expget = cursor.fetchone() exp = expget[1] texp = expget[1] + mexp … | |
I am new to this and maybe I'm missing the boat. I want to learn how to write a program that accepts data and adds it to a file, I also want to be able to sort that data, edit that data etc. This seems like the most basic thing … | |
Hi all, I am New in Javascript and Not Having too Much Knowledge of Javascript. I Have a Javascript That Disable Enter Key in Textarea in Whole Form in Page. but I Want to Disable Enter Key only One Textarea. Below is my Code: [CODE]<html> <head> <title>The Title Of Your … | |
I have been working on an email validation functions that would validate the e-mail and I am having problems communicating the "EmailState" from the ajax. The state the php gives is 1 if the email address exists and zero if it doesn't. I do this check with Email_Exists() and when … | |
This seemed like a good idea to me but it's not working out the way that I want ... I'm probably over-complicating it 8-) I'm trying to allow users to search for other users in their area and part of the search criteria gives you 8 different options to choose … | |
I've created a class, Category. [CODE=cpp]#ifndef CATEGORY_H_INCLUDED #define CATEGORY_H_INCLUDED #include <string> using std::string; enum Type {Integer, Double, Bool, String, Date, Time}; class Category { public: Category() : itsType(String) {} Category(Type type) : itsType(type) {} Category(string name) : itsName(name) {} Category(Type type, string name) : itsName(name), itsType(type) {} ~Category() {} void … | |
hi, i'm using php 5.3. version for my site development. If i use this function "session_is_registred()", i' getting message something like warning(not actual warning message) as following "Function session_is_registered() is deprecated in c:/.../.php" how can i erodicate this message? help to accomplish it... Thnx... | |
I have finished all the functions except one. I need help with writing a boolean function to determine if the magic square is a magic square. I don't completely understand boolean functions so any help would be appreciated. Thank you[code]#include<iostream> using namespace std; #include<fstream> //load the array void load2D(int &n, … | |
can someone help me identify the syntax error with this code [code] CREATE TABLE IF NOT EXISTS Persons ( id_number VARCHAR(13) NOT NULL , name VARCHAR(45) NOT NULL , name_2 VARCHAR(45) NULL , name_3 VARCHAR(45) NULL , surname VARCHAR(45) NOT NULL , date_created DATE , date_modified DATE , PRIMARY KEY … | |
I am trying to display a gif file on pyqt.It shows but doesnt animate.It is static.How can make it animate? This is the code i used: [CODE]pic=QtGui.QPixmap("./IRREGULAR/"+ui.lineEdit.text()+".gif") ui.label_9.setPixmap(pic)[/CODE] | |
Would this do any damage if I left it running for a while: [code=c++] int main(){ while(1) new char[0]; } [/code] | |
Hi, I like to add DisplayMember and ValueMember to combobox when Loading forms. Then with combobox_SelectedIndexChanged event select the DisplayMember but assign ValueMember to a textbox field. I can add and assign the DisplayMember, but I cannot do it with ValueMember. in Designer.cs part at initiation; [code] this.cmbViziteType.Items.AddRange(new object[] { … | |
hey, ima first time programmer and i no clue whats going on someone please help!! i have to write a function called number_of_2s that includes one parameter, N, where N is a positive integer that is no more than 10 digits long. the function should return the number of times … | |
What is the consensus on the best way reference module level variables? I have a wx app that has grown too large, so I started to do some housekeeping. I'm trying to move several functions outside of the main module while still being able to reference the main variables.. The … | |
I am trying not to delete internet shortcuts using c# the code is like this [CODE]static void Main(string[] args) { string path = @"C:\KOINA_ARXEIA"; string[] folders; folders = System.IO.Directory.GetDirectories(path, "*", System.IO.SearchOption.AllDirectories); foreach (string folder in folders) { Console.WriteLine("Getting files for Directory:{0}\n", folder); string[] files = System.IO.Directory.GetFiles(folder); foreach (string file in … | |
Hello, I have a php page with a form(grid) which is submitting values to the database. [CODE]<form action="<?php echo $_SERVER['PHP_SELF']?>" method="POST"> [/CODE] As soon as i press submit, data is updated in the database but I still see previous values in the form(grid), and manually need to refresh it for … | |
hi i need to write a logon code for delphi 7 that logs on to someone and then if they get the password wrong 3 time they get locked out. i am completely stuck i have a log on code written but i don't know where to go after that. … | |
Hi , I am a software developer in .net . My problem is that after I develop an application , I have problems understanding the code quickly whenever I need to go back to it after some time. Right now I am converting a data-app from VB6 to c# . … | |
Hello guys and girls. Any idea how to find containing numbers of one specific number. For example number 10: 10 = 9+1 10 = 8+2 10 = 7+3 … … I tried to do something like ‘random(10)’ but got nowhere with that. Cheers to all, marygreen | |
Hi! I'm going crazy about this problem. Here's the setup: On my mainform I have a menustrip from where I can open a new form (form2) with different controls like checkboxes etc. After I've modified these controls I close or hide that form and continue using the mainform. Now here's … | |
I want to thank the helpful posts. I'm now having a new problem. I have created 100 picture boxes at run time and I am giving each a dynamic name (pictureBox_1, pictureBox_2, etc). I want to be able to change the background image of the picture box of my choosing … | |
We are wondering how we would add parameters to the following script so that each section can be called separately. [CODE]<?php // This is the content we want to display $data = <<<EOT <div class="topbar"> My Text goes here </div> EOT; // Output JavaScript code to write the data printf('document.write(unescape("%s"));', … | |
Hi i am making a window application in which i want to know that when my application is start, so it should automatically get focus on textBox, how can i do that......... Kindly help me in this...............? | |
I'm trying to read a file which contains: Dante Beatrice 3 5 and put them into an array. Then I will assign the values of each member of the array to static variables. when i run the main class of my project, it throws a NullPointerException starting from the line … | |
So im just trying to understand a simple program in C++ but i keep getting an error when trying to compile this code. The error is [Linker error] undefined reference to `Player::getHeight()' . So i have my main code in one file called Main.cpp: [CODE]#include "Player.h" int main() { Player … | |
Is there a way to act directly on an array value returned from a function without assigning it to another variable first? For example, if I just want the third value in a CSV record, I might like to do it like this: [code]$value = preg_split('/,/', "one,two,three,four")[2];[/code] But that doesn't … | |
Im not sure if this is a php problem or javascript, but since the actual photo gallery is run by javascript I'll post it here, sorry if its not though. Everything works fine but when I click on another image to change the main image the caption wont change with … | |
hi all could any 1 help me out. im trying to find the biggest id number in a db. the problem is that the "ID" column is saved as "TEXT"(its important to me). the language im using is PHP. 10x! tried to use this but it didnt work $resultt = … | |
I am currently working on my final year project and i researching into building an Information system with SQL as database and ASP.Net as an interface? I just want to know if VB6 has the capabilities of been used as a tool to develop an Information system, integrating SQL and … | |
Hi Im developing a vending machine which have conneted to the bank server for card related transaction..... I have completed the coding and the system is working fine..... But I am required to apply concurrency to the system in fact controlled ones...... Is there anybody who has an idea where … | |
First a little background. I have a client (in-house) who insists that our training pages (launched from within iframes on a parent page) be able to load .wmv files with variables for the width and height parameters so we don't have to recode when videos are switched. Flash videos are … | |
Hi guys, So today I am trying to do something that is probably quite simple. But my head is all over the place and I can barely think straight! Something which is not good for a newb! I'm trying to display some text files on the web. These text files … | |
01 Why i am not able to do this [CODE]int* px; px = new int[2][2]; [/CODE] other the [ICODE]px = new int[2*2];[/ICODE] is there any other method 02 Why i am not able do access through pointer dx by [ICODE]dx[1][2][/ICODE] other than by using [ICODE]dx[1*7+2][/ICODE] [CODE=cpp] static float mat[5][7] = … | |
Hi, I'm trying to implement my own allocator using malloc and free. One thing what interests me is that in declaration of deallocate in addition to pointer we have also parameter size which suppose to be size of elements allocated with allocate but having implemented my deallocate as this: [code=c++] … | |
Hi , I recently read this on another forum... [Quote] C/C++ are still standards for writing fast, standalone software, so you'll be wanting to work your way there. [/Quote] If I want to develop an application that has many "if statements" and many "loops" , that executes only on the … | |
is it possible to run vb program without installing vb ??? if it possible, how it work ??? thanks... | |
is there a way to convert a java.util.Date to format dd/mm/yyyy HH:mm:ss ? | |
I know that this is well-covered ground, but for some reason I have been unable to get this database connection working. This is my first project using .net systems instead of PHP/MySQL so I'm not quite sure how things are working. I've spent the morning trying different connection strings and … | |
What I would like to do is to check the size of an archive directory in each of our users folders accessible via a Windows machine. I have a txt file with all of the users names (1 per line) and am trying to use for loops and potentially readline … | |
Hi all I am creating an app that utilises and MS Access back end and queries it quite a bit at various times. What I would like to do is bring in an entire table and then query the row(s) i want as I need them. This is what I … | |
i want to search from the following table attached in zip file, my query is select * from tbl_property where acco_id='1' and count_id='1' and holi_id='1' order by add_date desc but there is a problem, i have various value in holi_id , i want to search , means want to match … | |
Hi Dear Friends...!!! I am developing a Attendance System in C# using MS Access Database. I want to Count the totall P and A in the Attendance Column... now Dear Friends Please tell me any Query or logic to do the above work...!!! ***P for Present*** ***A for Absent *** | |
I need result which shows all the dates which expire after or within 90 days form now on(current date) but this query also shows results which already expire like it shows 27 sep 2009 which is before current date. I need only those which are expiring from today and with … | |
How do you return multiple values in a function? | |
I added a bachground color to a jpanel using [B]panel.setBackGround(Color.GRAY);[/B] I want to add some color like "[B]light blue[/B]." which do not have in the color list. how can I do. (2) how to add backgroud picture to jpanel???? (tried using [B]setBackGround[/B] but failed!!!) thankx in advance.... |
The End.