64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ayesha789

Hi, I am using UNION ALL to get Sum of expense of different categories from various tables. Now I got Site against their Sum of expenses but When I make this query as table(tbl2) ans select site,Max(Expense) from tbl2 it shows correct Max(Expense) but first Site id of tbl2. Here …

Member Avatar for ayesha789
0
161
Member Avatar for jackabascal

Say I have a tab control with tabs Tab1 And Tab2. How do I switch the selected tab programmatically, say on button1 click event. Sample code would be appreciated. Thanks in advance.

Member Avatar for Ketsuekiame
0
921
Member Avatar for cintojose

I have stucked up with an issue.For my date time picker control I want the day as 1st on any value selected by the user.(day of date part should be 1 for any date).Please help me regarding this......Thank You...

Member Avatar for Luc001
0
88
Member Avatar for lwaterfo

Hi, I keep getting this error when filling out my form and calling process.php: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home3/waterfor/public_html/process.php on line 1 all I did was move around some of the variable names in the php code. It was working fine just a second before that. Here …

Member Avatar for manzarr
0
457
Member Avatar for vishalkhialani

Hi, I am currently making my own template for wordpress and I am using someone elses template as a reference. I came across this code: [CODE]thesis_head::build();[/CODE] I don't know what this code means ? What is :: for ? Cheers, Vishal

Member Avatar for vishalkhialani
0
156
Member Avatar for nats01282

Hi there, I am trying to use a login and a contact form on one page, but im struggling with the php context [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>my webpage</title> </head> <body> <?php $user = 'admin'; $pass = 'admin'; if ($user != $_POST['username'] …

Member Avatar for nats01282
0
107
Member Avatar for omGac0W

Whenever I try and run this my compiler shows a random error and a bunch of binary numbers. I have no idea what is wrong. Am I missing something? Its a program to check if a number is a palindrome. [CODE]#include <stdio.h> #include <math.h> int palindromecheck (int number) { int …

Member Avatar for Ancient Dragon
0
100
Member Avatar for new_programmer

I have basic idea about malloc and calloc i heard about falloc and dlmalloc, can any one explain about it?

Member Avatar for new_programmer
0
179
Member Avatar for Peter_TARAS

Hi! I designed a class in Python to do stuffs related to genetic algorithms. I have a method in this class, which should provide a sort of log to keep the track of the populations during the evolution. I mean, I provide the filename as a string argument to this …

Member Avatar for vegaseat
0
17K
Member Avatar for mybluehair

I've got a big problem on my site i'm developing. I have a pretty simple session login script, and every page of my site checks to see if the person is logged in. If not, it redirects them to login.php. I've noticed that when I click links on my menu …

Member Avatar for mybluehair
0
102
Member Avatar for Archenemie

Hi, id like to set values for a botton is wxpython by taking that value from a text file. For this code [CODE]button = wx.Button(parent, label = “x”)[/CODE] and for example on the 1st line of the text file id like to read x. Ive played about with this a …

Member Avatar for Archenemie
0
115
Member Avatar for adams161

Hi, I know how to detect clicks and touches on the views, and i know how to make menus appear when they hit the menu key. My phone also has a little ball like button that you can press down on. How would an activity capture this event, say if …

Member Avatar for adams161
0
119
Member Avatar for assgar

Title: Comparing arrays Hello I am having a problem getting the difference between two arrays. The first array $list has all codes that can be linked to a specific id The second array $exist has the values select and linked to a specfic id. Both arrays are storing integers array …

Member Avatar for assgar
0
80
Member Avatar for jackabascal

[CODE]private Bitmap _picture = new Bitmap(@"<C:\Users\Jack\Documents\Visual Studio 2010\Projects\Animotion1.0\DefaultCharPic.jpg>");[/CODE] as a datamember to a class? Can I just not assign Bitmaps as members?

Member Avatar for Zinderin
0
220
Member Avatar for phplover

Hello, I have a script that works great, basically i have a mysql database that contains information about files; like filename, description, size etc. The information is displayed on a webpage in a nice formatted table. each file has a link next to it and once pressed the script below …

Member Avatar for phplover
0
262
Member Avatar for comSysStudent

Below is code taken from [URL="http://download.oracle.com/javase/tutorial/java/javaOO/QandE/enum-answers.html"]Sun Java Tutorial[/URL]. From my reading of the code the first time this loop executes should it not populate cards[1] with the first card skipping cards[0]? I've tested the code in eclipse and it seems to work properly first populating card[0] so I'm hoping somebody …

Member Avatar for comSysStudent
0
102
Member Avatar for figuer25

Hi so I am just trying to figure out what is wrong with my program. I am trying to implement the node class in C++. All I want to do is learn how to implement it and get it working. I am not trying to use it to create a …

Member Avatar for figuer25
0
1K
Member Avatar for tundra010

Hello all As the title suggests, I have tried to write a sorting program in C++ The code compiles right, but does print the sorted numbers, but rather prints a list of zeros. I have tried to find the cause of this error for a while, but I can't seem …

Member Avatar for tundra010
0
203
Member Avatar for Grusky

I am trying to create a simple matrix class. When an object of class matrix is created it should be able to create any nxn size matrix. The problem I am finding is that there doesn't seem to be a simple way to make a class with a dynamic 2D …

Member Avatar for r.evrard
0
168
Member Avatar for sudoku43

any idea how to create a loop if user input wrong characters..?? i tried to do while loop but it never works.. anyone..?? [CODE]#include <iostream> using namespace std; int main () { double input_x, number; cout << "Insert value: "; cin >> input_x; char choice ; choice = 'D', 'R', …

Member Avatar for r.evrard
0
164
Member Avatar for Jollyyy100

Am working on a project using vb.net and i have connected a database to it. I have an employee table within that and now i want to create a search box in vb.net where by if i type the employee-number of the employee i can get access to his or …

Member Avatar for Jollyyy100
0
2K
Member Avatar for joshalb

Hello. I'm trying to store a child class into it's a pointer of it's baseClass, like this: [code=cpp]baseClass*test = new subClass;[/code] Which works and all, except I'm having trouble using 'delete' to destroy the newly created subClass. So something like this: [code=cpp]baseClass*test = new subClass; delete baseClass;[/code] Here's a more …

Member Avatar for arkoenig
0
161
Member Avatar for discovery-power

Hi All, I have written a sub routine for a Save>Menu option for a MDI Text Editor, Please see my code below [CODE] Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click Dim f As Form2 If f.Text = "Text Editor V.2 - New Document" Then SaveAsToolStripMenuItem.PerformClick() …

Member Avatar for ÜnLoCo
0
137
Member Avatar for comSysStudent

Hi guys, Just a quick question, I'm working on a general stack class for use with my card game and rather than creating an overloaded constructor for every single object and primitive type I'm wondering is there a way to supply the data type when invoking a basic constructor? Basically …

Member Avatar for comSysStudent
0
140
Member Avatar for jrcagle

So I was thinking that there would be a simple Pythonic way to delete a directory structure. My app creates and deletes user accounts, which may contain any number of subdirectories and files. Hence, I wanted to do something like: [code] os.rmdir(user_directory) [/code] BUT...that throws an error when user_directory is …

Member Avatar for pythonista
0
141
Member Avatar for Trekker182

Hello everyone, I'm trying to connect to a access 2007 database with VB 9 and am having some problems. I went to Data and then selected add new datasource. Then I clicked on database and selected Next. I click on new connection, change the datasource to access database file and …

Member Avatar for chirag.makwana
0
238
Member Avatar for Don_leon

how do I populate a datagrid in a smart device with data from a sql database(not SQL CE)

Member Avatar for AngelicOne
0
70
Member Avatar for bdicasa

Hi guys, I was wondering if it was possible to call a specific PHP function using AJAX instead of calling a whole page. An example: [code] function MakeRequest() { var xmlHttp = getXMLHTTP(); xmlHttp.onreadystatechange = function() { if(xmlHttp.readyState == 4) { document.getElementById('provinceDiv').innerHTML = xmlHttp.responseText; } } xmlHttp.open("GET", "FindProvinces.php", true); xmlHttp.send(null); …

Member Avatar for tarmin68
0
1K
Member Avatar for reza.adinata

Hi all, I am trying to make an array of folders and want to basically take all files inside the folder. However, I got an error saying "missing a $ loop variable". I have add a $, and worked around with this codes, but still did not work .. Is …

Member Avatar for reza.adinata
0
117
Member Avatar for teedoff

ok I had an insert query that worked fine when using Access as my datasource, but I wanted to start using MySQL, so now when I run the insert statement, I get an error that says Filed "bulbID" doesn't have a default value. This error didnt occur with Access, so …

Member Avatar for rch1231
0
152
Member Avatar for Don_leon

I have 4 buttons on my smart device form and I am trying to put elements of a string array in to my buttons as button text. string[] str1 = new string[8] { "aaa", "sss", "ddd", "dff", "fddd", "ffggg", "bbbb", "gggd" ,"shehs"}; there is up and down buttons below the …

Member Avatar for Don_leon
0
169
Member Avatar for Xufyan

hello, i want to write a program that store subjects and days in two enumerations and their values in rows and coloumn using 2D array. how can i do this ? see the image below: [url]http://img718.imageshack.us/img718/3967/sufyan.jpg[/url] So far i've done this, [CODE] class EnumProg { enum Days {Monday, Tuesday, Wednesday, …

Member Avatar for java_programmer
0
422
Member Avatar for student_

I am a student about 4 weeks into learning python, so i do not know a lot, and am hoping someone can help me understand what i am doing wrong, here is the code: [code=python] def main(): name = "TEST" age = 50 makename() makeage() print "You are" ,age ,"years …

Member Avatar for student_
0
83
Member Avatar for Xufyan

Check my program....i'm printing the values of 2-D array in a ladder form. [CODE] int [][] TwoDArray; TwoDArray = new int [4][]; TwoDArray [0] = new int [1]; TwoDArray [1] = new int [2]; TwoDArray [2] = new int [3]; TwoDArray [3] = new int [4]; [/CODE] This is working …

Member Avatar for tong1
0
123
Member Avatar for MWE_QUE

I'm going through SAMS Teach Yourself PHP, MYSQL, and Apache all in one and I can't seem to get this example to work, which is used again in the next lesson. I usually type them in by hand as this one, but I've also tried cutting and pasting and removing …

Member Avatar for MWE_QUE
0
127
Member Avatar for timrichardson

The python module python-gdata includes an pretty comprehensive example of using python to fetch google calendar events (calenderEvents.py) No matter what I do, I only get 25 events returned. This is the default value of the maximum number of records returned. The example script includes these comments [code] In reality, …

Member Avatar for timrichardson
0
360
Member Avatar for GregMaClean

Hello, I am new to printing in vb.net. I have a project (not from school) where I need to be able to print content that is entered by users. The rest of the app is already made. I need to print the following: A [B]Title[/B] with a line under it, …

Member Avatar for GregMaClean
0
266
Member Avatar for Jazerix

Hey there I'm quite new at c#, nevertheless today I tried to make a little application and I ran into a little problem. Well, I got this form that i want to close when i click the button and then open a new one, not just hiding it. first I …

Member Avatar for Jazerix
0
7K
Member Avatar for priyanka.js28

if i want to dereference an object(using delete operator) of DERIVED class which is being referenced using a BASE class reference, which destructor would b called automatically?? BASE class destructor or DERIVED class destructor??

Member Avatar for arkoenig
0
264
Member Avatar for WildBamaBoy

In this program I have a lot of game directories in a list like so: [CODE]base = "C:/Program Files/Game" expansion = "C:/Program Files/Game/Expansion" Games = [(base, "Base Game"),(expansion, "Expansion 1")] Installed = [][/CODE] The program then sees if they are installed like this: [CODE]for path, name in Games: #For every …

Member Avatar for WildBamaBoy
0
117
Member Avatar for jenunique

First of all, yes this is for an assignment. I need to know HOW to do this so that I can perform this operation in the future. I have two list boxes that I am sending the data selections to ONE text box. My problem comes along when I am …

Member Avatar for finito
0
118
Member Avatar for cocoll

hello. i need help with combobox in vb.net. i try to add several columns in the combo,so i want when i select one item in the combo (this item is composed from 3 words for example),so i want the text in the combobox not to be composed from these 3 …

Member Avatar for Oxiegen
0
93
Member Avatar for codedude

I have developed a vb.net database application(desktop application with sql 2005).I managed to create setup files(.msi) which is running on my pc.but when i install this application on my client system the application is running but all database operations fails.Pls any one suggest a solution. Thanks in advance.

Member Avatar for Oxiegen
0
283
Member Avatar for Shreya J

Can someone help me in connecing the windows using java...? I am doing a project in virtual class..So i need to link the windows. Please help... Thanking u all in advance. Regards, Shreya.

Member Avatar for NormR1
0
68
Member Avatar for imso

Because i had to transfer my project to my lecturer but what the file location that works for my computer does not necessary work for my lecturer computer. Althought i transfer my wav file to the project workspace Alarm clock in the bin section. So how to allow my wav …

Member Avatar for Alexpap
0
380
Member Avatar for kdgeiger

I am trying to create an array of 20 values the have 4 methods that 1st will create a total of all values listed, 2nd search the array and return all values less than 5.00, 3rd return the average of the values using the output method from the first method …

Member Avatar for kdgeiger
0
203
Member Avatar for nocookies92

I'm relatively new to Java and I was trying to make one my programs more accessible to my non-computer savvy friends with java web start. I took my .class file and archived it with the command: [TEX]jar -cf TabbedLatinHelp.jar TabbedLatingHelp.class[/TEX] I then created a .jnlp file and uploaded the .jar …

Member Avatar for nocookies92
0
2K
Member Avatar for intes77

here's my code, i wanted to add another button that would have its own ActionListener. NOTE: its in object oriented style. i wanted to add these codes in my main class for my additional buttons, but my problem is i dont know how to make their ActionListeners. [CODE]myButton2=new Button("GET DIAMETER"); …

Member Avatar for JamesCherrill
0
220
Member Avatar for punchinello

I am trying to write a program using vb6.0 with sapi's speech recognition support. When I tried English everything came out alright. But when I swithed to Chinese, there's always this error when loading grammar and rules from an xml file. Why could it be? Anything to take special notice …

Member Avatar for punchinello
0
81
Member Avatar for mrkaran

how can i read character by character from a text file using isrteam. i use : istream s; char *next; next=new char; s.open("example.txt"); s.read(next,1); but this gives me each character with some dummy symbol.

Member Avatar for mrkaran
0
99

The End.