64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kamotekid08

Hi i have a problem in programming I need to search a line from a text file by just entering an identifier. Text File: "my Record.text" contents: 101,Carl Cool,500.00 102,Kurt Cobain,400.00 103,Kid Marion,300.00 the console should ask the id number.. ex. ID:101 and give the output: ID:101 Name:Carl Cool Rate:500.00 …

Member Avatar for kamotekid08
0
136
Member Avatar for buster2209

Here is my code; [CODE] // Allows writing to web forms void SetText(string attribute, string attName, string value) { comboBox1.Items.Clear(); // Get a collection of all the tags with name "input"; HtmlElementCollection tagsCollection = webBrowser1.Document.GetElementsByTagName("input"); foreach (HtmlElement currentTag in tagsCollection) { // Displays all the tags in a combobox comboBox1.Items.Add(currentTag.GetAttribute(attribute).ToString() …

Member Avatar for buster2209
0
162
Member Avatar for Sarama2030

does vb 6 and above support cross operating system compatibility. i mean can applications developed in vb be deployed on other operating systems apart from windows and if they can what is the level of vb compared to other renowned programming languages like c++ and java.

Member Avatar for AndreRet
0
113
Member Avatar for phpuser

I made one php project in which we provide facility to create his/her own web site. Now I wants to add new feature giving different subdomains to the members' web pages. Because the number of members is about 120,000, manual configuring is not the solution. Let me give you an …

Member Avatar for phpuser
0
134
Member Avatar for phpuser

Hi All, My client want statistics report for page visits and he gave me google analytics reference for same. In which they gave facility to get report between two dates and report wil be day, week and month wise. I having with two dates but havent any idea how i …

Member Avatar for phpuser
0
134
Member Avatar for terrymold

Hi I'm writing a website which will eventually create a new NewsLetter every week, which is saved in a MySQL Table. The user wants to view previous newsletters with the aim of selecting one to send out again. As each record contains 83 fields, this would be so cumbersome as …

Member Avatar for teedoff
0
109
Member Avatar for ivan3510

Hi! Sorry for my bad english! How to make simple chat with php and ajax without creating mysql database? Can you write code? Thanks everyone!

Member Avatar for ivan3510
0
128
Member Avatar for moni94

Hi. I'm making a space game and I need the spaceship to shoot bullets. So in order to make this happen I need a collection which can allow the following: 1.Adding an object (so that we can shoot new bullets) 2.Looping through and modifying all the objects (so that we …

Member Avatar for Momerath
0
113
Member Avatar for mrblippy

hi everyone, i am trying to write a java program that assigns a specified number of true values to random elements in an array. for example if i have a boolean array of 10 elements i would like 5 of these elements to be randomly assigned true values. im new …

Member Avatar for mrblippy
0
1K
Member Avatar for xVent

Hello , i would like to add a hover text when i have my mouse in fronnt of the image , not from the properties because i want to add some code on it .. it could be like 150x40 or more or less in size .. i would like …

Member Avatar for AndreRet
0
282
Member Avatar for keeda

I saw an example of friend class on [url]www.cplusplus.com[/url], please find it below: [CODE] // friend class #include <iostream> using namespace std; class CSquare; class CRectangle { int width, height; public: int area () {return (width * height);} void convert (CSquare a); }; class CSquare { private: int side; public: …

Member Avatar for keeda
0
99
Member Avatar for MoreBloodWine

My PHP knowledge is extremely limited so with someone saying read this wont help me much. Anyway... below should be everything one would need to assist me. Thx in advance ! [url]http://www.myu2sig.com/EoJCardLibrary.php[/url] If you check out the above link you will see some tables where I'm pulling and displaying DB …

Member Avatar for MoreBloodWine
0
124
Member Avatar for c0deFr3aK

Hello, I have a newly created ASPX Website with Default.aspx and a Masterpage. on the master page i created a navigation menu i.e Home, News ect. then i created a folder inside the site and put some pages i.e page1.aspx. My problem is when im at page1.aspx (/mysite/folder1/page1.aspx) then hit …

Member Avatar for c0deFr3aK
0
94
Member Avatar for dirkjan75

So, two pages: first one is a simple datasource & gridview with edit button, is working. Second is the same code but then in a contentplaceholder page, linked to a masterpage. Now the code is not working, when editing, it returns empty fields in steds of edited fields. [CODE]<%@ Page …

Member Avatar for dirkjan75
0
279
Member Avatar for kadvar

Hi, Given a sentence, I'm trying to check if all the individual constituents of a word are present in it and if they are then do some further processing. I can't seem to get the logic to work. [CODE]wordlist = ['England area','Germanic 6th'] mysentence = 'The area now called England …

Member Avatar for kadvar
0
101
Member Avatar for Chalandria

I have tried to figure this out and am having major problems with math pow. Any help would be great... This project deals with reading input from the user, storing the input into variables and displaying those variables. This program is an introductory project into the basic data types of …

Member Avatar for coil
0
217
Member Avatar for awmantonio

Hi everyone! I have an installment payment program which have Hijri date (Saudi Arabia) and I already have the code for it's converter inside the forms (using datetimepicker for the Gregorian & maskedtextbox for the Hijri). I'd like to know how can I convert or produce the corresponding equivalent Hijri …

Member Avatar for lolafuertes
0
793
Member Avatar for TinhornAdeniyi

This is my instructions [ATTACH]17319[/ATTACH] [ATTACH]17320[/ATTACH] and i am using Dev-C++ 4.9.9.2 and i am using the Mingw compiler i am a beginner. and this is my code. [CODE]#include <iostream> #include <iomanip> using namespace std; void everything(); int main() { everything(); system("pause"); return 0; } void everything() { int a,b,k,sum; …

Member Avatar for mitrmkar
0
220
Member Avatar for arjen

hello guys i need help how can u get the data in to two tables in one form. This code works but the problem is like in combobox2.text the data is display twice and also in inEmployee.text the data is display 4 time both are combobox so when u click …

Member Avatar for lolafuertes
0
184
Member Avatar for andrewliu

Hello, I was wondering what could be wrong? There is this ajax code that I'm trying to work on and its supposed to show the results in a div tag when submitting a search form, but theres no results. here's my code [CODE]$(document).ready(function(){ $("form.ajax").submit(function(){ var ajax_div = $(this).attr("id")+"_results"; var data …

Member Avatar for andrewliu
0
353
Member Avatar for reza.adinata

Hi I trying to create a script for creating a simple folder and subfolder. So basically i am in directory \home\ and want to create folder1, and afterwards subfolder 'folder2'. so at the end, I am expecting to have a simple \home\folder1\folder2. This is what I did [CODE]#!/usr/bin/perl -w use …

Member Avatar for reza.adinata
0
249
Member Avatar for jatt09

hi I need a code that allowed the user to enter 4 digit in the textbox then replace each digit with the result of adding 7 to the digit and getting the remainder after dividing the new value by 10. then swap the first digit with the third and swap …

Member Avatar for AndreRet
0
82
Member Avatar for Auraomega

Just wondering how I can get the time the program was compiled into my code dynamically, I'm guessing it'll be through my makefile somehow but my Google-fu has failed today. Any help would be great! (GCC + make *only*)

Member Avatar for nezachem
0
133
Member Avatar for lwaterfo

Hi all, Newbie question;.... I have a database and a table within called 'data'.. I also have a login script that allows users to access it. My question is..how do I make only the user's record viewable/accessible after login. Specifically, how do I access, the a specific record in the …

Member Avatar for lwaterfo
0
114
Member Avatar for kadriirdak

Hi There, I do have an sql query to update and insert row into database which I use it within a form. Problem is ; This sql query works good in one form but in other one it does not at all(same query different form), looks like it is blocked …

Member Avatar for AndreRet
0
121
Member Avatar for Sandhya212

Hi, My requirement is to identify '-' in string1 and delete those corresponding locations in string2. The logic I am implementing is that 1. find the locations in string1 where '-' occurs 2. At these locations, insert spaces in string2 and then 3. have string2 without spaces. I managed to …

Member Avatar for TrustyTony
0
127
Member Avatar for akmalhisyam

I have question, why when I don't put the "inFile.ignore()" line, the program doesnt work. What is the thing that the line ignore? [code=c]while(1){ inFile.getline(name,50); inFile>>ass1>>ass2>>ass3; inFile.ignore(); if(inFile.eof()) break; cout<<name<<" "<<ass1<<" "<<ass2<<" "<<ass3<<endl; }[/code] here is the content of the input file : akmal 3 2 1 akmal hisyam 1 …

Member Avatar for akmalhisyam
0
3K
Member Avatar for BonaDrag

I have this code that works fine: [code=c] protected void ButtonImgTextToDB_Click(object sender, EventArgs e) { string ID = TextBoxStartPictID.Text; string Rubrik = TextBoxHeadLineStart.Text; string Text = TextBoxTextStart.Text; SqlConnection conn = new SqlConnection(config); conn.Open(); string sql = "UPDATE StartImage SET Headline ='" + Rubrik + "', Text ='" + Text + …

Member Avatar for BonaDrag
0
149
Member Avatar for mulevad

I have an IIS7.5 server installed on my laptop. I'm learning C#, XML, XSLT, .NET, Visual Studio 2005, 2008, 2010 and Microsoft Expression Web. I am the webmaster on a simple PHP website that I inherited. I figure I ought to learn PHP, but figure I also need to install …

Member Avatar for mulevad
0
140
Member Avatar for cjay175

What I would like to do is have 2 buttons to submit a single form. One button is to save the form for editing later the other is to process it. With... [CODE]$("#saveform_ns").click(function(){ $('form#form_main').attr({action:"http://path/to/save.php"}); $('form#form_main').submit(); })[/CODE] I can get the submit button to work and the above button to work. …

Member Avatar for cjay175
0
637
Member Avatar for qazplm114477

Is there a particular reason as to why some people use .inc and some just use plain .php for include files? Does actually do anything performance wise or does it just make it easier to distinguish between files?

Member Avatar for digital-ether
0
110
Member Avatar for BestJewSinceJC

Oracle Certified Professional Java Programmer was formerly known as the Sun Certified Java Programmer certification. Does anyone know if the switch to Oracle has changed anything significantly, such as the questions that will be on the test? Or is it the same cert with a new name? The reason I …

Member Avatar for prashantpatel
1
140
Member Avatar for N1GHTS

What do you guys think is a good way to deal with this situation: [code] #define TYPE_INT 0 // 4 byte, signed #define TYPE_CHAR 1 // 1 byte, signed #define TYPE_UINT 2 // 4 byte, unsigned #define TYPE_FLOAT 3 // 4 byte, signed, floating point typedef struct { float Value; …

Member Avatar for N1GHTS
0
111
Member Avatar for fire_

Hello. Can someone tell me how can i add string to combo box? i tried [CODE]GetDlgItem(IDC_COMBO1)->Items->Add("Text"); [/CODE] but it didn't worked. and everything that i could find on google didn't helped :( so i'm asking you pros ;)

Member Avatar for Ancient Dragon
0
117
Member Avatar for broli100

Hello, I want to do classic "save as" function, how you know it from all programs, but I have a problem - when I put constant pathname in fopen function , like "file.txt" ,it works. But when I type a variable char[], it does nothing. Then I looked for function …

Member Avatar for broli100
0
225
Member Avatar for MichaelWClark

I have a master page with an update panel wrapping up the content template. In one of my pages I have a grid view that is residing in a Div that utilizes the overflow method to produce scroll bars. I need to be able to retain the scroll position through …

Member Avatar for MichaelWClark
0
588
Member Avatar for neoraghav

Hi, i accidentally given input as character for a integer variable.....then the program went crazy and just flooded the console..... so, is there any way to handle this exception......and how to achieve that thank you

Member Avatar for neoraghav
0
153
Member Avatar for kadriirdak

Hi There I do have a form and a little sql query to update the row before do something else. Problem is in the code below works when I enter the date like that= 01-02-2001 but I need to do it dynamic I know getdate() but it does not work.. …

Member Avatar for kadriirdak
0
156
Member Avatar for BzzBee

hello, I had a fckeditor at my php page, i want to put some data in fck editor when user click a button. How can i do that using javascript. Please help

Member Avatar for dennishall
0
420
Member Avatar for dennishall

Hi: I have a process allowing the admin to view users information and download files that the user uploaded to MySQL. When the admin clicks on the file link in the admin page, I expect the file will display using the default program (i.e. pdf or txt), or download (i.e. …

Member Avatar for dennishall
0
151
Member Avatar for MichaelWClark

I recently discovered the power of Linq To SQL and decided to implement it into a control that I am working on right now. So far it is making life much easier but I have ran into a small stumbling block here and need the experts assistance. I have a …

Member Avatar for MichaelWClark
0
121
Member Avatar for myk45

i needed to write a simple program to demonstrate the CRC mechanism in Networks. i needed a string of bools to be XORed with the polynomial. Well, i used <bitset> but that did not help much. So i just used a bool vector. This is how i proceeded. Here, when …

Member Avatar for myk45
0
138
Member Avatar for dennishall

Hi All: I have been working very hard and long at understanding this situation. I have tried many different sample scripts, to check my work and find find my solution. I have created a job board for a client, the user applies for a job in application form.php which then …

Member Avatar for dennishall
0
351
Member Avatar for falconwise

I am getting the following errors. ../MergeSort.c:32: error: expected expression before ‘]’ token ../MergeSort.c:33: error: expected expression before ‘]’ token [CODE]void mergesortinplace (int start, int length, int array[]){ if (length >= 2){ mergesortinplace(0, (length/2), array[]); /*GETTING ERROR HERE*/ mergesortinplace((length - (length/2)), length, array[]); /*AND HERE*/ } if (length >= 1){ …

Member Avatar for falconwise
0
222
Member Avatar for koduruabhinav

Hi, I have two files and each consists of modules and in turn modules consists of some verilog data and instances.i have to search for module name in the two files and comapare the contents of the modules in the two files. i have code it does module search,extract the …

Member Avatar for koduruabhinav
0
236
Member Avatar for cmcpart0422

Hey I'm new to the site but I'm taking a class that will probably have me here often asking stupid questions. One of my homework problems is create a python program using a while loop to answer the 100 fowl problem. The 100 fowl problem is a farmer sold 100 …

Member Avatar for cmcpart0422
0
111
Member Avatar for Sandhya212

Dear all. I have a file with lines like this.[CODE] query 210 ACTTGGACTC 219 query 311 ACTTGGACTC 320 ....[/CODE] From every line, I need to extract the number coming right after 'query' and then the DNA sequence. I currently read each line as a list but was only able to …

Member Avatar for Sandhya212
0
179
Member Avatar for mrbungle

I guess I have two questions (Visual Basic 2010)- When I run my compiled project, it creates a start menu folder and desktop icon. But there's nothing in the Program Files of my OS. Is it because my project is still small- or something else? Shouldn't it create a folder …

Member Avatar for AndreRet
0
110
Member Avatar for Firestone

My compiler won't pause on getchar();. I have Dev C++ 4.9.9.2 and if I put getchar(); at the end of the program, it doesn't stop, and the console window still exits. It still exits when I assign a variable to it c = getchar(); Is there another way to pause …

Member Avatar for Narue
0
2K
Member Avatar for vasunttfshimoga

Hello, i want to know what's the use of new keyword while Initializaing the array in JAVA.How it's helping in java whether same like new in c++ or malloc in c

Member Avatar for stultuske
0
281

The End.