64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Pareshja

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

Member Avatar for Pareshja
0
150
Member Avatar for axn

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 …

Member Avatar for jrcagle
0
82
Member Avatar for jayrads

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 …

Member Avatar for zandiago
0
170
Member Avatar for Duki

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 ( ) …

Member Avatar for Duki
0
91
Member Avatar for tnvkrishna

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 …

Member Avatar for Duoas
0
152
Member Avatar for justapimp

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 …

Member Avatar for SheSaidImaPregy
0
133
Member Avatar for parthiban

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 …

Member Avatar for parthiban
0
103
Member Avatar for parthiban

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 …

Member Avatar for parthiban
0
108
Member Avatar for jliu66

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

Member Avatar for jliu66
0
13K
Member Avatar for Artis_Croatia

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 …

Member Avatar for zandiago
0
94
Member Avatar for Ccrobinson001

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 …

Member Avatar for WaltP
0
270
Member Avatar for AnthIste

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 …

Member Avatar for AnthIste
0
117
Member Avatar for angelinajade

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 …

Member Avatar for MidiMagic
0
73
Member Avatar for aximenes

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 …

Member Avatar for aximenes
0
201
Member Avatar for Sofo

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?

Member Avatar for Duoas
0
166
Member Avatar for dave_nithis

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 …

Member Avatar for ghostdog74
0
1K
Member Avatar for tracethepath

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() { …

Member Avatar for WaltP
0
2K
Member Avatar for dddave999

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.

Member Avatar for dddave999
0
335
Member Avatar for weasel7711

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 …

Member Avatar for weasel7711
0
2K
Member Avatar for zandiago

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 …

Member Avatar for Ezzaral
0
180
Member Avatar for Triggerhappy41

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 …

Member Avatar for peter_budo
0
151
Member Avatar for DemonSpeeding

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 …

0
122
Member Avatar for drsmith

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 …

Member Avatar for drsmith
0
284
Member Avatar for tropical08

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 …

Member Avatar for tropical08
0
86
Member Avatar for atrusmre

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 …

Member Avatar for hollystyles
0
88
Member Avatar for bcm

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 …

Member Avatar for ptaylor965
0
106
Member Avatar for SheSaidImaPregy

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 …

Member Avatar for SheSaidImaPregy
0
110
Member Avatar for Duki

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 <= …

Member Avatar for Duki
0
759
Member Avatar for vivek_green
Member Avatar for Ezzaral
0
2K
Member Avatar for sreejithps

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 …

Member Avatar for vegaseat
0
114
Member Avatar for Duki

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 …

Member Avatar for Duki
0
95
Member Avatar for DejanL23

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"); …

Member Avatar for DejanL23
0
178
Member Avatar for StatiX

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 …

Member Avatar for StatiX
0
93
Member Avatar for SheSaidImaPregy

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 …

Member Avatar for Fungus1487
0
120
Member Avatar for toolmanx

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, …

0
135
Member Avatar for tdhughes

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 …

0
89
Member Avatar for ray_broome

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] …

Member Avatar for ray_broome
0
111
Member Avatar for jai.mahadeokar

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...

Member Avatar for jai.mahadeokar
0
106
Member Avatar for Venom Rush

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 ;)

Member Avatar for Venom Rush
0
2K
Member Avatar for jai.mahadeokar

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??? …

Member Avatar for Pierre Maurette
0
138
Member Avatar for zandiago

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 …

Member Avatar for Ancient Dragon
0
501
Member Avatar for Chris147

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 …

Member Avatar for Chris147
0
165
Member Avatar for drsmith

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 …

Member Avatar for fatihpiristine
0
97
Member Avatar for mathijs

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 …

Member Avatar for mathijs
0
148
Member Avatar for grunge man

i keep hearing about thees things called arrays but i never now what they are and are they used as much as classes?

Member Avatar for shuncyk
0
152
Member Avatar for divya.padukone
Member Avatar for Kusno

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 …

Member Avatar for SheSaidImaPregy
0
118
Member Avatar for hawisme000

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,

Member Avatar for hawisme000
0
128
Member Avatar for pyramid

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 …

Member Avatar for pyramid
0
309
Member Avatar for divya.padukone

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

Member Avatar for divya.padukone
0
82

The End.