64,152 Solved Topics
Remove Filter ![]() | |
Hello guys, I am asking a very simple thing to be done in my project (May be I've forgotten the syntax)......... I've taken a drop-down list in which diff. user-names are coming and added a delete button to delete the full row which contains the selected drop-down list user-name. I've … | |
Gentlemen, Is it possible to initialize the array at the time of creation?? I mean: int *a = new int[10]; // here array is only created. I wanna initialize the same too here itself. Is it possible??? | |
I need to keep track of the status for a person who registers for an event. This is going to be part of a tool that is administered by non-programmers. Various events will have different sets of status values, and it is possible for several events with distinct or overlapping … | |
Hi, I'm trying to loop through a listbox that is runat="server" (to get all the values of the items inside the listbox regarless of if they are selected or not). Now i have searched for hours on end and still don't find anything (all the examples is just for the … | |
Hi My txt file looks something like this: Branch: ltm_7.4 Destination: Test 5 [CODE] lines = open("branch_dest.txt").readlines() lines=[x.split() for x in lines] print lines branch = "%s" % lines[0][1].strip(': ') print branch destination = "%s" % lines[1][2].strip(': ') print destination [/CODE] I need to extract the branch name and the … | |
I'm trying to automatically convert a binary input in a textbox to a hex code in a second textbox. It does work the way I'm trying to, but the order it comes out is wrong, for instance, 1111 = 0F this is correct, but when i now make it : … | |
I have a php page showing records from an sql database, when the user clicks on a link they are taken to a detail page with more info etc. All of this works fine - the issue is that I wiould like uses to be able to submit a form … | |
i'm pretty clueless about everything dealing with python. i need help creating a sorting algorithm that can sort names in a list alphabetically. and example code to help get me started would be much appreciated. | |
Hi, I have found some code that looks like something I would like to use but am really unsure of where it goes within the form. The code is [URL="http://www.midnightprogrammer.net/post/2009/10/22/ReadWrite-settings-to-INI-File-using-C.aspx"]here[/URL]. It's the first bit of code the [COLOR="Red"]class INIFile[/COLOR] section that I don't know the placement for on my form. … | |
Hi I am using C# to connect to mysql database that install in my local machine.After I complete the project I want to publish it in another server.So I change the mysql connection string.Here I mention the connection string that I used in local machine String MyConString = "SERVER=localhost;"+"DATABASE=IPG;"+"UID=root;"+"PASSWORD=Test;"; Before … | |
my testing folder in my site is red. perhaps anyone can help me to identify what is the problem because i got the database connection using phptriad and everything goes well because i can view my database by dreamweaver8. whats wrong with my site folder when i click to view … | |
Hi everybody! I'm facing a really tricky problem in python. I am using the pyserial package to communicate with an external serial interface board. The board accepts certain hexadecimal strings as commands in the following form : --example-- command1 : "\x02\xa1" command2 : "\x03\xa2\xb5" etc... Some of the commands are … | |
Hello, when I give fprintf the character 0x0A, then it prints out 0x0D and 0x0A (which is \n in Windows). How can I print only 0x0A? I need to print a picture into a file containing 16-bit pixels, (and some bytes contain the value of 0x0A,) so it is very … | |
I started to think how to create up and down style loop, and what I ended up was this. Wanted to do it little unconventional way though to demonstrate the property of range as list.[code]for n in range(8): for i in range(n)+range(n-2,-1,-1): print i, print """ Output: 0 0 1 … | |
Hi, I need help getting the basic idea of how to begin writing this Strings program: file has last name(1word) & email address objective of prgm is to validate email address [LIST] [*]1 "@" symbol; no space left of it [*]1 "."; no space on both sides of it [/LIST] … | |
Private Sub Average_Click() Dim Test1 As Integer Dim Test2 As Integer Dim Test3 As Integer Dim Test4 As Integer Dim Test5 As Integer Dim Test6 As Integer Dim Average As String Test1 = txtTest1.Text Test2 = txtTest2.Text Test3 = txtTest3.Text Test4 = txtTest4.Text Test5 = txtTest5.Text Test6 = txtTest6.Text Average … | |
Hey guys i have taken part in a programmers elite competition and in a group you are assigned different programs to build. i have VB and C++ .... im really good with C++ but i have never touched VB !! now i have a project to build ... so can … | |
Hi all, Has anyone used PFDBox before? I'm having trouble with makeing a pdf with mulitple lines: [CODE]contentStream.drawString( patient.toString() );[/CODE] patient.toString() has newline characters in it(\n) and drawString dosn't recognize them. | |
Hi, I'm trying to figure out how classes work. I currently am working on getting a class to read a string and then place it into an array, as well as have the class then output the entire array. I wrote the following code to make sure i could get … | |
I am trying to learn about recursives and found this code on the internet. It works, but am not sure why. Could some one explain to me why this works. I have posted comments by the function to explain what I do not understand. [CODE] #include <iostream> using namespace std; … | |
Hey guys i have this program and i want you to tell me what is wrong cuz i can't figure it out !! This is what i have to do: (the code follows) When the form is loaded, read the records in P3S3 Data File For Import.txt to a listbox … | |
Hey everybody, i wanna use the array "intArray" in the class eightPuzzleAStarDemo() as initial state but i get a cannot use it. Does anybody has a hint for me? Is it because it is not in the same package? Thank you [CODE] package aaa.mayerp.projectone; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; … | |
I keep getting an object expected error at the start of my <body> I've set a form to value="Accountants" and <body onload="showindex()"> in an attempt to automatically submit this value to a js file whenever the page loads. My aim is to have dozens of html pages all using the … | |
So i've found an example of how to use Semaphore and made my code into there for Readers-Writers problem. What it must do, that it has 1 book, only 1 writer can write a new line there and while he is writing, no1 else can access it. When writing is … | |
I am trying to read all the files in a folder and for some reason it keeps reading only 1 file over and over again... [CODE]private void openFile() throws IOException { status.setText("Adding Photos"); File file; JFileChooser fileChoose = new JFileChooser(new File("charlie/photo/")); int success = fileChoose.showOpenDialog(this); if (success == JFileChooser.APPROVE_OPTION) { … | |
How can you get a JList to simple display a one word string. I know the method of JList.setListData(Object[]); I have an object[], but it is multiple lines of information and it looks weird in the list display. How can I get an Object[] to simply display the first line … | |
Hi need some help to separate my string. I'm reading my text from file. The format is "name,1,2,3" What i need to do is to seperate out the entire string to: String name = "name"; String one = "1"; String two = "2"; String three = "3"; The commas are … | |
so i have a project due in my computer programming class and i need some serious help. we are learning about recursive sorting, such as merge sort, selection sort, etc. my project has to do with taking 10 people and sorting them in order by their names (alpabetically), rank (numerically), … | |
Hi, How do these relate and differ? I see them Used with queries but cannot understand. I'm just starting JDBC. Sorry if it is noobish ;) | |
![]() | Hi all, I'm trying to get the content of a div with php. I can't find a way to use javascript in php to do it so I was thinking that regex would be the way? If it helps the div id is "editor". Thanks in advance, if you need … ![]() |
Hi all, am writing a programming for my assignment. Got stuck in my codes for a small portion. Currently i have trying to extract all the alphabets within a string and cover them to an ascII. For example: I have a string "1a2b3c" What i need to do is to … | |
Hello my friends. I am having problem with a GridView that its been filled by a LinqDataSource, and the footer i have the option to insert a new row, but if the DataSource is empty the footer wont show up. What is the best option to fix this. Thanks. | |
[B]Introduction[/B] Hey! Guyz.. Welcome to my very short tutorial explaining basic uses of "malloc" function in C language. [NOTE : You need simple understanding about pointers to understand this tutorial] Hey guyz see by reading this tutorial you'll not be a malloc expert .. This tutorial is only for the … | |
[CODE]<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:AdNetConnectionString %>" SelectCommand="SELECT AdCampaign.ID As [ID], AdCampaign.CampaignName FROM Account INNER JOIN AdCampaign ON Account.ID = AdCampaign.AccountID WHERE (Account.EmailAddress = @EmailAddress)" DeleteCommand="DELETE FROM [AdCampaign] WHERE [ID] = @ID" > <SelectParameters> <asp:SessionParameter Name="EmailAddress" SessionField="EmailAddress" /> </SelectParameters> <DeleteParameters> <asp:Parameter Name="ID" Type="Int32" /> </DeleteParameters> </asp:SqlDataSource>[/CODE] In tge previous code. When … | |
[CODE] Select Case (e.Index) Case 0 If Alarmlvl = 3 Then bwcolor = Brushes.Gold ElseIf Alarmlvl = 2 Then bwcolor = Brushes.Black ElseIf Alarmlvl = 1 Then bwcolor = Brushes.BlueViolet End If Case 1 bwcolor = Brushes.Gold If Alarmlvl = 3 Then bwcolor = Brushes.Gold ElseIf Alarmlvl = 2 Then … | |
Hi everyone, I am using Ubuntu 7.10, and I have Java and MySQL installed with the command line as follow: 1. sudo apt-get install sun-java6-jdk 2. sudo apt-get install mysql-server and my JAVA and MySQL are working well, but now I want create connection between JAVA application and MySQL using … | |
I'm getting this error and I can't figure out why: "Parse error: syntax error, unexpected $end in C:\Program Files\IndigoPerl\apache\htdocs\process_menu2.php on line 160" thanks :) [code]<?php echo '<html> <head> <title>Uploading...</title> </head> <body> <h3>Uploading file...</h3>'; // Set up the database connection. require_once ('mysqli_connect.php'); //if name selected from drop down box if (isset($_POST['product_name'])) … ![]() | |
Hello all. I'm almost certain this question has been posted before, but I couldn't find it--I apologize if it's a repeat. Anyway, I'm having a peculiar problem using getline when reading to a file. I know exactly how the file will be formatted, except the presence of comments at the … | |
I have a datagridview with data in it. I want to search the whole datagridview with a searchbox. This is the code I am using but it only searches the 'model' column not also the 'make' column. [CODE] DataView Dv = new DataView(); Dv.Table = partsDataSet.Tables["partsTable"]; Dv.RowFilter = " Make … | |
![]() | Im working on this bit of code below, The only thing im worried about editing atm is the self.toggle() and self.hello(). Im currently getting this error TclError: unknown option "-menu" from this line of code self.config(menu=menubar), does anyone know how i could fix this problem?? [CODE] from Tkinter import * … |
Hey everyone, I need some help on some simple Python programming, below is my problem: Identify numbers or words in any .txt file that aren't listed in a provided .txt file and to output those numbers or words that aren't in the text file one per line, in alphabetical or … | |
hello can you help me please.. i have this trapping that will trap the characters..but my problem my code is too long..are there other ways to shorten my code..please help me ...hoping for your positive responds... [CODE]Public Function mchnotrap(KeyAscii As Integer) If KeyAscii >= 33 And KeyAscii <= 44 Or … | |
Heya , I was thinking of making a site opener application :). But I had a lots of problems . The next problem is facing this , it just crashes.:( [B]What do I want my program to do ?[/B] I want to assign a nickname for each of my favorite … | |
:( im new in vb.net i read some tutorial i still dont understand on how to retrieve data from sql server into datagrid. can someone teach me on how to set it. if got easy tutorial for me also can i have a button call "retrieve" and when i click … | |
Hello guys, i have my drop down list in which i have 5 years from 2010-2006.by default start year is current year and last year is current year-5. exa:- if start year is 2010 then last year is 2006 now if 2011 begins then start year will be 2011 and … | |
Hi, I was wondering what is the "cleanest" way of combining two datasets by taking all the values from one data set and only the values from a second data set that have an index that does not appear in the first. Both data sets have the same columns. Even … | |
Hi I'm trying to pass data from one page to another, but it does not display anything, Page 1: [code] protected void submit_Click(object sender, EventArgs e) { addData(); Session["value"] = space_01.Text; } public void addData() { string tenderDate = start_txt.Text; string cost = totalCost.Text; string companyName = name_txt.Text; string scon … | |
hi im trying to read a txt file and could you please check what is wrong with this? this is my code [CODE]// This program will calculate the charges for shipping #include <iostream> #include <iomanip> #include <string> #include <cstdlib> using std :: ifstream; using namespace std; int main() { // … | |
Hello to all, I've written this thread because I want to know the different content types used like................. [CODE] Response.AddHeader("Content-Type", "Application/octet-stream"); [/CODE] It was used for software and It was successful........But what for Music,Pictures and E-Books ??????????? Thanks in advance........... | |
Hy, I seek your help in solving the following problem: I have a select which returns columns like ( without count_same which I need to create by counting the same name): ID | NAME | no_items | count_same ----------------------------------------------------------- 1 | A | 1 | 2 2 | A | … |
The End.