199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wwwmadeasy

hello every one ..i am planing to do some coding but i dont know how to start... the idea is that i created a form in HTML which is submitted to the database...and what i want is the recourd should display in bold font if i did not view them...if …

Member Avatar for wwwmadeasy
0
75
Member Avatar for SKANK!!!!!

i have a thread in my forum. all the replies are by THE SAME USERNAME. the mysql thing looks like this: (that runs when i post a reply) [CODE]mysql_query("UPDATE `replytable` SET `the thing to show if its a mod` = 1 WHERE `by` = '$_SESSION[username]' AND `the thing to show …

Member Avatar for SKANK!!!!!
0
93
Member Avatar for hollywoood

Hello everyone.... I have gotten this far with my mortgage calculator....the problem is the while loop and the actual calculation isn't working correctly. The while loop really doesnt do what i was hoping for it to do...and being pretty amature at this...i am not sure where to go. i built …

Member Avatar for hollywoood
0
772
Member Avatar for Roguey

I'm trying to write a peice of code that will convert all the uppercase characters in a word to lowercase, and to store that in an array. I know how to convert individual characters, and to output all these characters in the fixed lower case. The thing i'm unsure about …

Member Avatar for mrnutty
0
447
Member Avatar for CD-4+

hello , i am a newbie in c++ and desperately wanna learn it. icoded this but i m gettin some error [code]# include<iostream> using namespace std; class cat { public: unsigned short int age; public: void meow () { cout<<"MY AGE IS "<<age<<endl; } [/code] [code]# include"cat.cpp" int main() { …

Member Avatar for dgr231
0
160
Member Avatar for thegreatdanton

Hi, I'm retrieving data from a database where it is being called onto a page based on what is in the database. What i want to do is organise this data into a sortable table whereby the user will be able to click on the column header and sort by …

Member Avatar for almostbob
0
84
Member Avatar for justin105

Hi there, i m currently trying to come out with a project as below i m trying to use a USB webcam to detect any movement i plan to implement this into a parking system to detect wether the parking is available is Java programming suitable for a system like …

Member Avatar for JameB
0
678
Member Avatar for eaon21

[CODE] #include <iostream> #include <algorithm> #include <conio.h> #include <cmath> #include <iomanip> using namespace std; int main() { int terminals[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}; int count,row,col,i; int limitcomp[20]; int coordinates[2][20]; double smallest = 0.0; double current = 0.0; double x, y; int network = 1; double chunk, total; do { cout<<"Enter number of computers: "; …

Member Avatar for VernonDozier
0
148
Member Avatar for flipjoebanana

If I have a string, i.e.: s = "'Quote Example'\tby person\n" How can I display it to view the special characters untranslated, to see: "'Quote Example'\tby person\n" instead of: 'Quote Example' by person I need to know mostly for debugging purposes since the string is generated and doesn't follow a …

Member Avatar for zachabesh
0
117
Member Avatar for nunos

(a | b): For what I have read in other forum post, if a is true, python doesn't evaluate b an returns a. (a & b): What happens with logical and? If a is false, does python evaluates b or not? Thanks for your help.

Member Avatar for nunos
0
411
Member Avatar for mamtha

I need to derive last 2 numbers after the '-' from the code column. example if the code is 76767-99 then I need a query to return only 99. I am using substr and instr functions but not getting what I want. Please help me correct the below query. code …

Member Avatar for debasisdas
0
136
Member Avatar for razmca

Hi everybody... I have struck in a issue which is explained below. Pls resolve it... I have an download option in my web application(ASP.Net with C#), which brings an dialogbox asking where to save the file. But i want to get the path of the file which is going to …

Member Avatar for DdoubleD
0
154
Member Avatar for wasala

Hi I am developing a spell checker for my language, and I came across solving an interesing problem. It would be great if you can suggest me an optimized solution for the problem described below: I have certain group of letters like these: Group #1: c,r,b Group #2: a,z,k Group …

Member Avatar for wasala
0
150
Member Avatar for ashish2234

Actually what i want to do is that on a click of a button , the selected row of the jTable increments to next row so that i can fetch that row to play the next song...how can i do that???

Member Avatar for TheWhite
0
112
Member Avatar for mortalex

Hey, I'm trying to create a dynamic drop down box where the first drop down box populates the second drop down, but it isn't working. I have two tables; pricelist with fields, -id -groupname -item -price groups with fields, -id -groupname I've got the code and to me it looks …

Member Avatar for leadinnasirawan
0
137
Member Avatar for apease11

Hi, I am having a problem forcing a download from PHP. I am running 5.2 Stable. I have followed numerous tutorials and still can't figure it out. What I'm trying to do is force-download a file I made, because the browser likes opening it up inside, but it won't let …

Member Avatar for apease11
0
153
Member Avatar for manutd4life

Ok i have a button on MDI parent form and i need to disable it when closing a child form. When writing the button name (cmdmenu) in the child form, it says that the cmdmenu is not declared please help

Member Avatar for manutd4life
0
207
Member Avatar for nunos

[code=python] class ExcelDocument(): """ Some convenience methods for Excel documents accessed through COM. """ def __init__(self, visible=True): self.app = Dispatch("Excel.Application") self.app.Visible = visible self.sheet = 1 def new(self, filename=None): """ Create a new Excel workbook. If 'filename' specified, use the file as a template. """ self.app.Workbooks.Add(filename) def open(self, filename): """ …

Member Avatar for nunos
0
195
Member Avatar for Tekkno

I have a form that gives the user an option to upload a file. The field is optional, but if they do not upload a file I would like to insert a default image into the database. At one point it was working but I can't seem to figure out …

Member Avatar for Tekkno
0
99
Member Avatar for moiseszaragoza

Hey I am trying to know what is the value of of a check box (true, or false) but i cant seem to get it write [CODE] function getPrice(boxName){ alert(form1.Soft_Top_Cloth.checked) // Hard code box name it works alert(form1.boxName.checked) // passed threw variable not working } [/CODE] [CODE] <input type="checkbox" name="<%= …

Member Avatar for Airshow
0
77
Member Avatar for esesili

Hi all, I have a simple question. I am working on it for a long time and I feel that I am almost done except for a small problem. As seen below there is a member function of patient class. It takes variables name and visit_duration. In addition to these …

Member Avatar for Sky Diploma
0
148
Member Avatar for katec

Hi. This should be simple for the experienced. This code pulls the first record twice, but the rest are fine. I can't figure it out! Thanks for looking! -------- [code=asp]<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open(Server.Mappath("products.mdb")) set rs = Server.CreateObject("ADODB.recordset") sql="SELECT Model, Volts_Hz, BTUH, Max_Amps, Max_Temp, '<a href='+Drawing+'>'+Model+'</a>' AS Drawing FROM VAirConditioners …

Member Avatar for katec
0
265
Member Avatar for Schoorsteen

Hello, I am having a trouble with the proxy I am making with C++. I am connecting a client to a server trough my program. client talks to my program, program talks to server server talks to my program, program talks to client Like that. However, when I receive something …

Member Avatar for Schoorsteen
0
396
Member Avatar for arelius

Hello everybody, I have a datagridview and one of the columns contains dates. I want to loop through the data in the column using this for loop. string StartDate=""; string EndDate=""; string date=""; foreach (DataGridViewRow dgvr in dataGridViewTasksReport.Rows) { date = dgvr.Cells["work_date_col"].Value.ToString(); } But what I want to do is …

Member Avatar for arelius
0
2K
Member Avatar for clc571

So this is going to sound like other posts but I have been racking my brain to figure this out. This code is a mod of one that my instructor posted, he said it was fine to just change the names of variables and submit it. When I did so …

Member Avatar for VernonDozier
0
83
Member Avatar for toucan

I'm trying to run a thread until a mouse event occurs, which will trigger an interrupt to the thread. The problem is that I can't get the thread to stop running in an asynchronous way (i.e. to listen is a mouse event occurred). Instead, what happens is that the thread …

Member Avatar for JamesCherrill
0
182
Member Avatar for jure.gregorin

Hi! I'm working with an XSD Schema in C# and I have all of the classes imported through a C# code generator. Now I want to know if an element/property of a class is mandatory, optional and such. Any clues anyone?

Member Avatar for DdoubleD
0
94
Member Avatar for anish.anick

Hi All, I need to cache some javascript variable values across the page. Consider page 1 has a javascript variable which holds some value and If the user take page 2 and clicks the browser back button the javascript variable value on page 1 will be lost. How can i …

Member Avatar for Troy III
0
99
Member Avatar for hemaljoes

In my projects I have several ListView . I ListView I have Checked Boxes ( I have made the CheckBoxes property true in my ListViews.) I can select multiple items in my ListView. What i Want to do now is when i select multiple Items i want to marked those …

Member Avatar for serkan sendur
0
115
Member Avatar for jonny_java

I have the code at the bottom of this post: Running [icode]abc x = new abc()[/icode] can often take a long time (minutes or longer) and is only ever necessary if flag is true. If I leave the code as it is below, I get a "x cannot be resolved …

Member Avatar for jonny_java
0
115
Member Avatar for darkocean

I am copying excel file to mssql database's table, problem is this : I have some informations in 4 rows but mssql database table has 13 rows. fisrt 4 rows has my information and 4-13 rows has null values. sbccm from 1 to 14. where is the problem I donw …

Member Avatar for DdoubleD
0
202
Member Avatar for Owbon

How would i close the file then ... I am writing a program to run different powerpoint show depending on the time of day. I want to be able to close 1.pps when its time for 2.pps to run. hope this makes sense! [CODE] if (time.Hour >= 9 && time.Hour …

Member Avatar for Owbon
0
90
Member Avatar for babbu

[code] frmColourName.ShowDialog() 'adding a customer m_Customercount = m_Customercount + 1 Dim drNewRow As DataRow = m_CustomerDataTable.NewRow() drNewRow("CustID") = m_Customercount drNewRow("Company") = txtCompName.Text.Trim drNewRow("Address") = txtAddress.Text.Trim drNewRow("Telephone") = txtContact.Text.Trim drNewRow("Address") = txtAddress.Text.Trim drNewRow("Email") = btnEmail.Text.Trim Dim counter As Integer = 0 While counter < m_CustomerDataTable.Rows.Count If m_CustomerDataTable.Rows(counter)("Company") = txtCompName.Text.Trim Then MessageBox.Show("This …

Member Avatar for babbu
0
141
Member Avatar for maxbug

I have an MFC SDI application in VC++6. Data is read from disk in the Doc, converted, and displayed in the View. I have implemented a CDialog, launched from an entry on the main menu, in order to permit the setting of data display options. By including the CDialog's header …

Member Avatar for maxbug
0
105
Member Avatar for Traicey

Hi all I have a function writetofile() which save a record to a file but the problem is when its writting to a file it doesnt write the record in a correct order, here is the code for WriteToFile() [code=c++] void StudentC::WriteToFile() { ofstream Outfile; Outfile.open("File\\Student.txt", ios::app); Outfile << Count …

Member Avatar for group256
0
227
Member Avatar for etm9413

Hi all, Here is a beginner question I am working on a ASPX webpage where I have a ASP button that triggers a serie of event (C# code behind) that takes about 10 seconds to execute. I basicly want a Label to appear on the page just after the button_click …

Member Avatar for textbox
0
179
Member Avatar for K?!

Hi all I'm encountering some problems switching to PHP 5.3. I am now using XAMPP 1.7.2. I had [URL="http://slaout.linux62.org/php/index.html"]this[/URL] database class extended and it worked when using PHP 5.2.9. But after the switch to 5.3 it doesn't. (Today I found out it was originally written for PHP 4 so it's …

Member Avatar for K?!
0
105
Member Avatar for taikoprogrammer

Hi everyone, So I am writing this program that is supposed to do the following: Create a program that accepts a string from the user (not from the command line) and displays: 1. The string using upper-case letters, e.g. all lower-case letters are converted to upper-case letters 2. The string …

Member Avatar for yellowSnow
0
4K
Member Avatar for chikool

error C2106: '=' : left operand must be l-value for (int m=0;i<4 && i%2==0; m*m =i) { cout<<"Multiplication of all positive even numbers which are greater than N: "<<i<<endl; }

Member Avatar for dgr231
0
112
Member Avatar for jen140

Hello all. I get a small problem compiling it. And get the next error: \client/windows/handler/exception_handler.h(72) : fatal error C1083: Cannot open include file: 'client/windows/crash_generation/crash_generation_client.h': No such file or directory So how i proceeded : Installed mozilla-build 1.4, reinstalled the windows sdk(to the latest version), and have Visual Studio 2008 Professional …

Member Avatar for jen140
0
148
Member Avatar for kessenchu

I don't want to disturb you, but I don't understand how works the properties. I mean, using this simple code: #!/usr/bin/env python2.6 def cosas(self, width): return "cosas" class Rect(object): def __init__(self, width, height): self.width = width self.height = height self.area = 0 print "Adios" @property def _area(self): return self.width * …

Member Avatar for jlm699
0
523
Member Avatar for franksmule

Hi, I am having a problem trying to get a callback function to work within a class. Its from the DXUT Direct X source code example. I'm basicly trying to get a callback to call a function within a class. I'm stuck, been reading around looking at all these pointers …

Member Avatar for Tom Gunn
0
136
Member Avatar for zupca

Hi, I am using preg_match_all first time and i have problem with getting values from string. Example of the string: [CODE] $str = '... { "trailStart":"1980", "key":{"dim0":"Switzerland"} } ... '; [/CODE] Here is my example. I have to get out year and country (1980, Swizerland). Can anybody write pattaren for …

Member Avatar for ShawnCplus
0
98
Member Avatar for terence6203

Hey guys. I am new to Java programming and I am having a lot of difficulty figuring out how to get the proper functionality out of my first, last, next, and previous buttons. First, I was wondering if my button setup is correct: // helper method that creates panel for …

Member Avatar for terence6203
0
681
Member Avatar for TBotNik

All, Have a frustrating report problem. Have code of:[code]Function RAmount() HrsAmt = DLookup("trp_ham", "qryTIMshtS", "[trp_id]=" & Me![Row_ID]) MilAmt = DLookup("trp_mam", "qryTIMshtS", "[trp_id]=" & Me![Row_ID]) RAmount = HrsAmt + MilAmt End Function Function RCount() RCount = DCount("trp_id", "qryTIMshtS") End Function Function RTotal() HrsTot = DSum("trp_ham", "qryTIMshtS") MilTot = DSum("trp_mam", "qryTIMshtS") RTotal …

Member Avatar for TBotNik
0
112
Member Avatar for dzhugashvili

I have this code: [CODE] #include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <stdlib.h>//(for atoi to work) using namespace std; void usage() { cout << "Usage: <input1> <input2> <output>\n"; cout << "\n see README for more details.\n"; exit(1); } int main(int argc, char *argv[]) { cout << …

Member Avatar for dzhugashvili
0
144
Member Avatar for nalasimbha

In my project there is a need to for multiple inheritances and I have figured out that i need to inherit base classes virtually. The code that I have works fine, but I would like to know in particular what happens internally during inheritance. The classes that i use and …

Member Avatar for nalasimbha
0
91
Member Avatar for Nathan Campos

Hello, I'm learning Java ME, remember that i'm already a Java developer, but i want to create another form to show all the details of the contact, like that of the contact book of the cell phones, here is my code: [CODE=java]package contacts; import java.io.*; import java.util.Vector; import javax.microedition.midlet.MIDlet; import …

Member Avatar for Nathan Campos
0
255
Member Avatar for eliza2044

Hey guys, I've been working with KML files for displaying placemarks on Google Earth. Through my C++ application I need to insert new placemarks in a generated file. Some example code follows and may give you an indication on what kml is and what i want to do. As the …

Member Avatar for eliza2044
0
174
Member Avatar for Jason123

Hi, i would like to know if list is able to achieve these : 1) to get the range of elements such as .. A list of 10 elements beginning from value 1 to 10. I would like to get the range from element 3 to element 5 and add …

Member Avatar for Tom Gunn
0
100

The End.