199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for drabsch

I need to copy text form a text box for example: My text box has temperature="18.5" in it and i want to copy the text 18.5 i already have it selected i just need to copy it or put it into a var

Member Avatar for drabsch
0
108
Member Avatar for dwdata

Hello, I have just started to develop a PHP/mySQL site and was wondering if there are any Open Source Security Frameworks they can recommended. Not only do I want to deal with data hacking issues, but also want to know what the best practices to insure that users are not …

Member Avatar for network18
0
181
Member Avatar for anumitadas

How to import file in wamp server? I have a database file named as db.opt .I want to save this file in proper location so that I can access database from wamp server..Its showing unable to access database everytime. I saved those file in wamp\bin\mysql\mysql5.1.36\data. But I cant access database …

Member Avatar for sanjay1kumar11
0
180
Member Avatar for sgw

In the following very simple program, if the input is [I]not [/I]an integer (e.g. a character symbol), then the output screen would flash and go away. Is there a way to have the output "bad" when one enters a non-integer, just as when one enters a negative number? Thanks in …

Member Avatar for sgw
0
254
Member Avatar for ronyyy

Hello.....I have problem ......i have to transfer a sms from a mobile to another mobile which is connected to a computer.i have to read the sms directly through computer without seeing tne mobile which is connected to computer via USB........then i have send a sms from computer to mobile(which is …

Member Avatar for AndreRet
0
150
Member Avatar for mshravs

here i have to search the database according to serial no and show the information of that serial no the problem here everything is fine and [CODE] Dim a As String Dim b As Boolean Dim dr As SqlDataReader Dim ConnStr As String ConnStr = ConfigurationManager.ConnectionStrings("gate").ConnectionString() Dim conn As New …

Member Avatar for mshravs
0
129
Member Avatar for Brandon515

hey guys, ok here's the situation. i need to turn a C++ style string into an integer now i've used altoi and strtol but they give me different numbers. heres my code [CODE] cout << file << endl << file.c_str() << endl; // debugging purposes num = strtol(file.c_str(), &pEnd, 10); …

Member Avatar for Brandon515
0
132
Member Avatar for mejohnm

I am making a program for a fruit stand and I like for it to show the names of the products and not the name of the derive class. I think I need a method or rewrite my code somewhere, could someone take a look and give me a hand? …

Member Avatar for mejohnm
0
106
Member Avatar for Shanti C

Hai Every one... Im totally new to X-cart open source .Its a e-commerce source actually..And my company needs to create a shopping cart with x-cart.. Any suggestions , tips on this will always welcome... thank you, shanti..

0
108
Member Avatar for Sandar Khin

Hi all, Pls help me .I want to make multile JLabel or JTextField with multiple Link in Marquee.I can do only one.Here is my code [code=java] import java.awt.*; import java.io.IOException; import java.util.*; import javax.swing.*; import java.awt.event.*; public class MovingText extends JFrame implements ActionListener{ JLabel label; JLabel label2; JLabel label3; public …

0
141
Member Avatar for jacquelinek

I have a list like this: name1: group1 name2: group4 name3: group1 group2 name4: group4 .......... .......... I wish to invert this list, and make it look like: group1: name1 name3... group2: name3 group4: name2, name4 ........... ........... Can somebody offer at least a psuedo code? Thanks

Member Avatar for k_manimuthu
0
145
Member Avatar for oskido2010

Hi I would like to set up a php birthday reminder so that if users bdays are within the 7 days, it should display that the folllowing people celebrate their bday next week so far i have got to this stage, does any one have a better idea? [CODE=php]if(!empty($_POST)){ function …

Member Avatar for digital-ether
0
4K
Member Avatar for CFROG

I'm trying to display a menu option only for certain session id's and for some reason it displays for ALL session id's ... not just the ones i have indicated. Not too sure why it's doing this, it all looks okay to me. [code] <?PHP if(isset($_SESSION['user_id']) && $_SESSION['user_id'] == 1 …

Member Avatar for EvolutionFallen
0
187
Member Avatar for ihatehippies

Here's my problem. I wx application that works great until I close it (leaving the idle editing session open) and then restart it. Then parts of the program see variables that should be things like 'wx.panel' as PyDeadObj .... Once I restart the idle session and re-run the program it …

Member Avatar for ihatehippies
0
140
Member Avatar for blackst0rm

I am using Visual C++ Express Edition. I have 3 files: (A) main.cpp, (B) prototypes.h (C) implementation.cpp. main.cpp includes prototypes.h and prototypes.h includes implementation.cpp. When I go to "Start without debugging" things screw up because in (C) implementation.cpp the compiler complains that it can't find the data fields. e.g. it's …

Member Avatar for Ancient Dragon
0
263
Member Avatar for Ryujin89

I am trying to create a program that has a class with a method that accepts a charge account number as an argument. Then the method should determine if the account number is valid by comparing it to the list of accounts in a text file (Accounts.txt). Then method should …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for emhmk1

Hi guys, i have been trawling around looking for a decent and simple way of working out an age from a birthday. The way i'm working is a date of birth is added to a database then when pulled we echo the actual age and not the d.o.b. It's probably …

Member Avatar for EvolutionFallen
0
127
Member Avatar for bcohenllc

Ive been working on a checkbook application for my visual basic class and I'm a little stumped.. To preface, the values I need to mess with include: transaction type (checking or deposit) DTP check number ("dep" if deposit) payee (who check is for) purpose of check/deposit amount of check/deposit user …

Member Avatar for kplcjl
0
263
Member Avatar for jsmarts

my assignment is to make a triangel like so: * ** *** **** ***** I have done so but cannot get my command window to stay open. It pops up and closes right back out. heres my code can anyone help? #include <iostream> int drawBar(int); int main() { std::cout << …

Member Avatar for Shinedevil
0
151
Member Avatar for djnstuff

Okay, what I'm trying to do here is set up a some-what simple battle system for a text based game... I'm having some trouble getting it to work correctly though. I want the Player's attack and the Monster's defense to be random each time the program loops (which is also …

Member Avatar for Shinedevil
0
323
Member Avatar for restrictment

Hello, I am trying to make an rpg, and I am having troubles with functions. I am currently working on the 'potion' aspect of my rpg, which I have highlighted in red. My question is this: Is it possible to make the function return money, potion number, potion size, etc? …

Member Avatar for restrictment
0
374
Member Avatar for jetjash

Using VB.NET I am using Combobox, when i select the value in combobox, the date value should display in datetimepicker where date = combobox id vb6 code [CODE]cmd.CommandText = "select distinct Name from T_Person where personid = '" & txtno & "'" Set rs = cmd.Execute While Not rs.EOF If …

Member Avatar for sknake
0
133
Member Avatar for Goalatio

Hey all, I've been trying to get my int 10h to set the color for a STRING, not just a single character. Here's my code, i'm running windows XP and using NASM16 assembler. So, what I want it to do is display something like "Hello world", instead of just.. "a", …

Member Avatar for Goalatio
0
296
Member Avatar for Wenners

Hi, I've imported a Visual FoxPro database to MS SQL Server 2008 and had a couple of queries; The VFP tables used Numeric(5,0) for the Index fields, but I'm thinking of converting them to Integers in SQL Server. Is there any issues I should be aware of? A co-worker keeps …

Member Avatar for sknake
0
138
Member Avatar for avirag

Listview item display: In my application when I am entering string it compares with formtext of each form.If it matches with any of the formText ,it displays the image of panel2 that is on each form .These images appears in listview as a result of matching of two strings(string in …

Member Avatar for sknake
0
134
Member Avatar for StarZ

I'm supposed to merge a ordered data of two files into a third file, keeping the data in order. I'm suppose to create a MergeFiles application that merges the integers ordered from low to high in two files into a third file, keeping the order from low to high. Then …

Member Avatar for BestJewSinceJC
0
433
Member Avatar for kadji.kahn

I'm trying to make a program that will read two txt files, with GPA information (one for females and one for males) arranged like this: M 4.0 M 3.7 M 2.9 I've been instructed to used pass by reference void functions with no global variables. My major issue is how …

Member Avatar for kadji.kahn
0
174
Member Avatar for jazz_vill

Hi I need help on how to use LDR and ADC0804 in 8051 microcontroller. So far I have this in my project but I want to replace the switch with LDR (dark activated). What happens here (attached file)is that I use the switch to decrement/increment the number of cars and …

Member Avatar for jazz_vill
0
994
Member Avatar for makybe

I have developed two large VB 6 programs and apparently and unintentionally developed one as a Project Group rather than a stand alone Project. As A group I have problems that all releases of the program seem to be altered each time I make a development change, which I dont …

Member Avatar for makybe
0
1K
Member Avatar for jodie121997

Hi All, I have the application which will be support 32 bits and 64 bits and below are the statement to handle 32bits/64bits data and new_node->data is void * new_node->data for ( index = 0 ; index < items ;index++ ) { if (data_size == SIZE_32 ) { * ( …

Member Avatar for Aia
0
112
Member Avatar for geek_till_itMHZ

I have a Java Program that I need to create that will show five random images selected form my image folder of 50 images. upon clicking a button the program should select 5 new random images. I have most of it figured out except for my ActionListener. Is it possible …

Member Avatar for Ezzaral
0
163
Member Avatar for skarocks47

So i am just starting out learning C ++ and i was trying to make a BMI calculator. When ever i run the program and it prints the BMI number its a weird number. Not one it should get. Please can u help me out with my source? #include <iostream> …

Member Avatar for jonsca
0
194
Member Avatar for asxoliastos

Hello I am new to this forum so be patient.. I am currently having an issue with a map iterator well the code i am talking about: [CODE] leafnode<LeafEntry<recno_t> ,blocknum,char*,recno_t>* descend(Object<dimensionality,Type>& ob,nonleafnode<NonLeafEntry<dimensionality,Type>,dimensionality,Type>* rt,blocknum* leafblocknum){ std::map< int,NonLeafEntry<dimensionality,Type>* >* entries; std::map< int,NonLeafEntry<dimensionality,Type>* >::iterator it; leafnode<LeafEntry<recno_t> ,blocknum,char*,recno_t>* L; int i,elements; if(rt == NULL) …

Member Avatar for asxoliastos
0
134
Member Avatar for pyprog

If I have a file that has a content of this kind: a,b c,d e,f g,h I need to make a list of the letters in the first column, i.e., [a, c, e, g]. I wrote some code which prints these letters but I don't know how to put them …

Member Avatar for snippsat
0
328
Member Avatar for frank_albers123

I am writing a program in python where in the function I input a row in Pascals triangle and the function returns the NEXT row in the triangle. Below is what I have so far and am getting really frustrate...I'm new at this and bad at iterating things. Can you …

Member Avatar for masterofpuppets
0
310
Member Avatar for rkulp

I am trying to overload the Comparison Operators, to have them compare the RMR of two fitness trackers. I need to change the RMR from a double to an int for the comparison. How would I do this when the RMR is calculated by a function. Here is my code. …

0
115
Member Avatar for jakx12

Ok so what i want to be able to do is connect to a mysql database. Here's my code so far: [CODE] Connection connection = null; try { // Load the JDBC driver String driverName = "postgresql-8.4-701.jdbc4.jar"; // MySQL MM JDBC driver Class.forName(driverName); // Create a connection to the database …

Member Avatar for masijade
0
529
Member Avatar for FengG

Python beginner try to learn pygame. Here is a program I made for random color circles popping out. [CODE]import pygame, random pygame.init() X = 680 Y = 460 def main(): screen = pygame.display.set_mode((X,Y)) pygame.display.set_caption('circles') background = pygame.Surface(screen.get_size()) background = background.convert() background.fill(pygame.color.Color('white')) run = True clock = pygame.time.Clock() while run: clock.tick(30) …

Member Avatar for FengG
0
140
Member Avatar for AdRock

I have a string which i can break down into tokens but what i want it to do is if it reaches a '//' it breaks out of the loop so no more tokens are added I have tried using this but it doesn't work [CODE]while (p!=NULL) { if(p=="//") { …

Member Avatar for AdRock
0
177
Member Avatar for xfreebornx

How can i sort this array pls.. [CODE]#include<iostream> #include<algorithm> using namespace std; int prompt(int x[]); void printreverse(int x[]); int main() { int x[5]; prompt(x); printreverse(x); system("pause"); return 0; } int prompt(int x[]) { for(int i=0;i<5;i++) { cout <<"Enter integers:"; cin >>x[i]; } } void printreverse(int x[]) { for(int i=0;i<5;i++) { …

Member Avatar for mrnutty
0
115
Member Avatar for teddyg18

So i am writing a simple prgm in which you enter the values of 2 matrices and multiplies them. [code] #include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { int i, j , k , l, m , n , o, p; cout<<"Enter The Rows And Cloumns And Of The …

Member Avatar for asxoliastos
0
126
Member Avatar for gpss

Hi! I need help... i want to make a button that when i click on it... it save's some attributes of my database (postgreSQL), and it save in .xls or .txt file... how can i make that? is it possible?? i can show my attributes on a table view on …

Member Avatar for chrishea
0
105
Member Avatar for whitestream6

This is my code which is intended to produce an URL like the following: [url]www.mysite.com/test.php?day=1[/url] [CODE] <? if (!$_GET['day']) { $day = date('N'); } elseif ($_GET['day']==1){ ?> <?php include("test1.php") ?> <? }else if($_GET['day']==2){ ?> <?php include("test2.php") ?> <? }else if($_GET['day']==3){ ?> <?php include("test3.php") ?> <? }else if($_GET['day']==4){ ?> <?php include("test4.php") …

Member Avatar for diafol
0
185
Member Avatar for RonW56

Can someone help me with this problem I've been trying to do an else statement but it doesn't work here is the code.... for(int c=0;c<student_max;c++){ if(search_id==id[c]){ location=binary_search(id,student_max,search_id); cout<<"Student ID \tTotal \tGrade"<<endl; cout<<"-----------------------------"<<endl; cout<<search_id<<" \t\t"<<total[location]<<" \t"<<determine_grade(total[location])<<endl; //break; } //} else{ cout<<"Incorrect id entered"<<endl; break; } } }

Member Avatar for boblied
0
119
Member Avatar for sneek

Hi, I have a problem because I did not realy get yet when do Py_INCREF or to Py_DECREF. I build a class type that covers a PyObject*-Array. Now I wrote a function like that: [CODE] static PyObject * get_first(MyObject *self) { PyObject *res = NULL; if (!self->size) return NULL; res …

Member Avatar for sneek
0
948
Member Avatar for treyd

I have to write a program that has a tic tac toe board. When you click it, it should go from one image to another. My code compiles fine, but it doesnt run. I get some errors: Exception in thread "main" java.lang.NullPointerException at TicTacToe3.<init>(TicTacToe3.java:27) at TicTacToe3.main(TicTacToe3.java:41) My code: [CODE]import java.awt.*; …

Member Avatar for treyd
0
130
Member Avatar for jko2326

I have my program working but, I need to cut out the repeated code. How do I change this part of my code to pass arguments to a user defined method? I'm lost. I really have no clue exactly where to start on this. Basically when a user clicks a …

Member Avatar for jko2326
0
144
Member Avatar for isabellegagnier

I need to create a triangle in C++ that will take the user inputted letter (capital) and then create a triangle that will look like. I can only use nested loops NO arrays or strings Enter a letter: F F FE FED FEDC FEDCB FEDCBA here is the code i …

Member Avatar for isabellegagnier
0
234
Member Avatar for s021126
Member Avatar for Rashakil Fol
0
27
Member Avatar for Loony064

Hey guys! I figured it might be easier to have my various questions in separate posts, to avoid confusion. My next problem is that with two of my tables (Hours Worked and Occupations) when i want to save the records, it places the correct values (taken from text boxes on …

Member Avatar for esspeter
0
218

The End.