199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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() { … | |
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 … | |
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 … | |
[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: "; … | |
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 … | |
(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. | |
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 … | |
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 … | |
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 … | |
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??? | |
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 … | |
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 … | |
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 | |
[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): """ … | |
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 … | |
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="<%= … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; } | |
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 … | |
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 * … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 << … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … |
The End.