64,152 Solved Topics
Remove Filter ![]() | |
Hi Guys, I am a newbie and need some help. Is it possible to extend the message box functions to include buton "Yes to all and "no to all" in vb6 Kind regards | |
excuse my ignorance, cant find it here in the forum. how do i strip the "|" or the pipe character from a line. i tried this. it splits but doesnt remove the "|" character. output = string.strip (line, '|') # strip the pipe character print output.split() # split output and … | |
Hi all, Have a question regarding an assignment. In a previous assignment we had to implement a program that allows us to enter a system of connected caves within an underground labyrinth. How this is implemented shouldn't matter for this next assignment though. In this assignment, we have to use … | |
I'm getting an error in main() saying TitledEmployee is an undeclared identifier? [code=c++]#include <iostream> #include <string> using namespace std ; namespace Employees { class Employee { public: Employee ( ) ; Employee ( string theName , string theSsn ) ; string getName ( ) const ; string getSsn ( ) … | |
is the syntax used below is correct? [code=cplusplus] class zz { private : string s; //constructor private: friend zz operator-(zz z); //assume definition of operator<< }; //constructor //operator<< zz operator-(zz z) { string s; s=z.s+"hello"; return zz(s); } int main() { zz a("fsd"); cout<<(-a); } [/code] i am new to … | |
I wrote a program that makes use of the System.Timers.Timer name space and it is not working like expected it to. My program listed bellow excepted two date values and determined if one date is greater than the other by using the DateTime.compare method. If one date is greater than … | |
Hi all, I'm learning Serialization in JAVA . I learned that [B]"an array object is serializable as long as the things in the array are serilizable"[/B] . [COLOR=Green] I just need a clarification on that statement[/COLOR] . To understand that concept I myself coined a simple program . Here it's … | |
Hi all , [U]Here are my questions :[/U] I like to know when to use Serialization and when should the preference will be given to Database to persist an Object . To use a database with Java at what level a programmer should be good in Database ? what are … | |
Hi, I have a question ask you or expert. Can python's function return a class at the end of function definition. The class have only a set of data members like struct in C. Please help and thanks in advance. Any good reference on this topic? John | |
Hi to all I need help with this program, i have problem, i must write it out from left to right not from right to left, but i do not know how to do it, when i change something in program, than it is not working :( here is the … | |
This is my first time posting an I need some quick help. I need to get this program to work for two players. once Player 1 loses Player 2 gets their turn. the program works fine just can't figure out the while loop for 2 player. [code=cplusplus] /* header files … | |
hey there. my problem is pretty simple (i think). I dont know how to point at a multi dimensional array.how i understand normal array pointers is: [code=C++] int numbers[5]; int *p = numbers; //so now *p points to numbers[0] //so if you say: *p = 10; //is the same as … | |
quick question, I am a newbie, first with this site, and with programming. this is my first semester and I am learning the basics. I am having a problem with Javascript. this simple code is supposed to just create a web page with the tile , my name and then … | |
Conjunto is classtype that implements an array of pointers to some other class objects, i'm trying to overload the % operator so that the result is the join of both arrays into one. eg. array1%array2 = array1 + array2 im' trying to use methods of the class Conjunto such as … | |
I have written a small application that sends an Email. I would like it to terminate itself without any user action. I end the OnCreate procedure with Self.Close, but the application keeps running. What am i missing? | |
Hi all, a=2007-05-10 b=2007-06-10 These are the two given dates and I need to compare. The script should first compare years.If both are same or if a is lesser than b,it should print correct.If a is greater than b,then it should print error.Similarly for the dates(05 and 06). No need … | |
hello everybody... i am trying to make a project on binary files and that needs a function to modify data in a binary file. I have made the following class. [code] class example { public: char name[10], number[5]; void getdetails(); void showdetails(); example() { name[0]='\0', number[0]='\0'; } char* getname() { … | |
I would ultimately like to write my own OMR (Optical Mark Recognition) program. What language would you recommend is best to carry out this task. | |
I am working on a project to demonstrate the use of strings without using "strings" in the formal definition, as in using pointers to arrays of characters. The program is supposed to pick a string from an array of pointers to chars, but allow the program to include more words … | |
Good day. How do i convert the following code to C++? [code=java] // Lets import our file functions. import java.io.*; public class Grades { // Setup an array of test students private static Grades.test student[] = new Grades.test[50]; // Just for spunk we will create an inner class to keep … | |
The attached image shows my problem. When I create a GUI in netbeans, the preview of the GUI does not match the actual GUI shown when running in two ways. One (in a minor sense) is that it does not have the windows xp "look" for its buttons, borders and … | |
This is my first time writing a bash script in Linux, basically I want to create a user but not use adduser or useradd. So, in the /etc/passwd folder I need to put data in, in this way. login:encrypted passwd:UID:GID:gecos:home directory:login shell I'm going to leave the gecos blank. Then … | |
Having a strange problem with some PHP code. This code: [code] $filename = "/u2/text/TOPAShiftlog".$dateString."_AShift.rtf"; [/code] writes the file TOPAShiftlog2007-10-26_AShift.rtf to the /u2/text dir. I want it to write 2007-10-26_AShift.rtf to the /u2/text/TOPAShiftlog dir so I tried this: [code] $filename = "/u2/text/TOPAShiftlog/".$dateString."_AShift.rtf"; [/code] This code ends up removing my "submit" button … | |
i got a little question hope you guys can help out i wanna copy a char array[8] to a 2D array , strcpy doesn't let me do it. how should i go about [INLINECODE] char letter[8]="abcdefg"; char temp[10][2]; for(int i=0;i<10;i++) strcpy(temp[i],letter[i]) [/INLINECODE] how do i get extract all the letters … | |
Ok this may be a stupid questions. Is there a way to make a dynamic form? For example, if I wanted to create a form that took a users birthday, how do I make it so it would change the number of days in the month to correspond to the … | |
I have created child nodes in app.config.xml file: <applicationSettings> <XML.My.MySettings> <setting name="Astrology" serializeAs="String"> <value></value> </setting> <setting name="Cricket" serializeAs="String"> <value></value> </setting> <setting name="ForiegnCurrency" serializeAs="String"> <value></value> </setting> <setting name="Jobs" serializeAs="String"> <value></value> </setting> </XML.My.MySettings> </applicationSettings> I want to insert values in this child nodes Astrology=6:00 Cricket=7:00 ForeignCurrency=8:00 Jobs=9:00 How to read and insert … | |
Can someone please help me figure out what I am doing wrong here? It is supposed to find the checkboxes per dataitem and see if that specific dataitem needs to be deleted. And if it does, to delete them all after adding it to one SQL statement. Please look below … | |
Hey guys, I'm supposed to write a program that will calculate the Nth fibonacci number, without using recursion. I have the recursion problem written already, but am having a hard time doing the iterative one. here's my recursion function: [code]int fib ( int n ) { if ( n <= … | |
Hi, Can someone tell me how to identify a carriage return character in string | |
Hi, I am tryiing to open a file from my python project. The path to the file is given as .\Templates\html\temlate1.html. I used the file Alerter.py to open the above said file. Actually this source file and the Templates directory are existing in the same folder and on execution of … | |
Hey guys, we were given an opportunity for extra credit in my OOP class. We're going over recursion and my prof said if we could do a project using recursion and do another useing iterative statments, and time them, we would be given extra cred. Is there a way to … | |
I tried to write a basic calculator program, Visual basic finds 1 error. I cant find it. Please help. I am kind off new to programming. [code=c++] #include <iostream> using namespace std; int main(void) { system("TITLE calculator"); system("COLOR 9"); char cChar; double dfirstnumber; double dsecondnumber; char cDoagain; do { system("CLS"); … | |
Im trying to create a datagrid that will display an image instead of what is actually stored in the database. For instance if the result of a zodiac is leo, then show the leo image, or if it is cancer, show the cancer symbol, etc.. I am using a datagrid … | |
Hello, I need to access the database when a session unexpectedly ends or session times out. This is just for telling the database to update a field for when the user last logged in. The reason I need this is that it saves me tons of coding for other stuff … | |
I don't know if I am the only one having trouble with StretchBlt or if my symtom is a normal situation. StrechBlt works fine as I zoom the picture larger. I expect the pic to loose quality if I zoom out too far. My problem is: As I zoom smaller, … | |
Howdy, I need to pull database information into an XML defined form. One of the db fields has to be contained in a CDATA node. This line of code returns data, no errors [code] <HTMLCONTENT type="html" width="400"><![CDATA[<body><p>]]><%=aContent%><![CDATA[</p></body>]]></HTMLCONTENT>[/code] It works until I try to use it within an application which uses … | |
I posted a similar question in MySQL section before but i think this one might be more general/easier to understand (hopefully): I'm doing a database (in MySQL) of different plants which is gonna store various (somewhat detailed) information about them. Here's a sample of two tables: Families (Plant Family) [code] … | |
To get an ascii value of a char we have the ascii(c) function in curses.ascii module... but in the curses module _curses module is imported... which is not there in the library hence exception is being generated... can anyone kindly help.. or suggest any other method for conversion... | |
Hi I would like to know if it's possible to delete a row from a database by selecting it from a drop-down list and hitting the submit("Delete") button. If it is could you help me out with a bit of "code and description" or a link please. Much appreciated ;) | |
I am trying to use the function cmpfile of the cmp module which returns true or false if filepaths passed are same or not... But the interpreter flashes an error "undefined global name false"... Also it doesnt accept true or false in other functions also.. what might be the problem??? … | |
So far this is what I have: [CODE] #include <iomanip> #include <cmath> #include <fstream> #include<string> #include<iostream> using namespace std; int main() { ifstream infile; ofstream outfile; infile.open ("Wordcalc.txt"); outfile.open ("WOutput"); char A = (1*2.0);//value for letter A char C = (3 - 20.4); char D = ((4/12.0) *3.09); char E … | |
Hi All, Does anyone know how to interrupt a Do While Loop? I have a very simple bit of code that Loops though the items in a ListBox so long as a boolean (blnPaused) = False. There is a Button on the Form that sets the boolean to True but … | |
Not sure if this is a PHP or a MySQL problem...I am pretty new at both. Basically I have a .php form that is writing data to the db just fine and most of the data is saving back to the .php file fine. I have several "text" boxes that … ![]() | |
I'm having a problem trying to create a game. the point of the game is to guess a random number. i'm learning python and i tought it would be a good exercise. everything went fine (if you dont count syntax errors :)) until i tried to save the program. i … | |
i keep hearing about thees things called arrays but i never now what they are and are they used as much as classes? | |
Dear all, I allow users to hit enter in my TextArea control (for address). The value is saved to SQL table. I show data in child form in GridView. If users click GridView row, will display in parent form. I get problem with address because it contains vbCrlf and JavaScript … | |
elow, can any1 tell me whats the code for deleting a record in a database?? or deleting a row? my table is consist of fields.. lecID arlNumber arlLec arlPart thx in advance to, | |
I need to write two functions to calculate the speed and the $fine for over speeding. The formula I need to use is: V = c * (W0 – W1) / W0 I wrote the function to calculate the speed, but the results are incorrect, using the formulas below. V … | |
Need source code for the following: when you select a particular entry in the DropdownList, the other details of that entry should come in the datagrid. also there should be options for edit,update and delete the records from the datagrid. Code Behind: C# Database: SqlServer 2000 |
The End.