64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for simmy7

I am using .Net 2 in Vs 2008 and I am trying to get the onclick event for a checkox to fire when clicked. Unfortunately it is not firing. I can see the code is added to the checkboxs html. This is the checkboxlist: [CODE]<asp:CheckBoxList runat="server" ID="chkSides" RepeatColumns="3" RepeatDirection="Horizontal" DataValueField="ItemNo" …

Member Avatar for Ramesh S
0
695
Member Avatar for wayz1229

i want to sort qtitle by numbers. anyone can help me with tat.. i tried to modify the code below, but i couldn't find the solution. please help me.. [CODE]<?php $query1 = "SELECT * FROM table1"; $result1 = mysql_query($query1); $i=1; $num_row=mysql_num_rows(result1;) while ($row1 = mysql_fetch_array($result1)) { $qid = $row1['qid']; $qtitle …

Member Avatar for wayz1229
0
103
Member Avatar for garcon1986

Hello everyone, I've searched a lot of time today for a solution, but not succeed! I want to insert value from the radio button and checkbox into mysql database. Here is my code: insert.php [CODE] <div id="form"> <form method="post" action="process.php"> <h1>BESOIN </h1> <br><br> <label>Sujet:</label><input type="text" name="sujet" />&nbsp;&nbsp; <label>Date: </label><input type="text" …

Member Avatar for garcon1986
0
2K
Member Avatar for zzbottom

i have to make program for a hotel (just a scenario) but i'm having problems. First i have to ask them to choose a room type i.e A/B/C/D which decides how much their room costs per night (a=$22, b=$55 etc). Then i have to ask how many nights they wish …

Member Avatar for Geekitygeek
0
98
Member Avatar for mr_scooby

hi guys, I have 2 tables, one called neworders which stores the part_id and num or parts and a 2nd table called parts which has all the part details including cost. tables are as follows [code] neworder part_id(primary key) number_of_parts parts part_id(primary key) 7-8 more columns, eg size, desc, sup …

Member Avatar for mr_scooby
0
155
Member Avatar for Mitja Bonca

I have this code: [CODE]string[] dirs = Directory.GetFiles(@"c:\myFolder\", "*.doc"); [/CODE] How do I do the same code, if I change "*.doc" with the comboBox. I have done the code that a user selects a filter from the comboBox. I did: [CODE]string[] dirs = Directory.GetFiles(@"c:\myFolder\", comboBox1.SelectedItem.ToString());[/CODE] but it is not working... …

Member Avatar for Mitja Bonca
0
122
Member Avatar for crystality

Hi! I'm getting this error when compiling: $ g++ index.cpp index.cpp:85: error: 'friend' used outside of class index.cpp: In function 'std::ostream& operator<<(std::ostream&, const GrabStuff&)': index.cpp:88: error: 'myLineNumbers' was not declared in this scope Links to included files: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/mystring.h"]mystring.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/string.cpp"]string.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.h"]SplayTree.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.h"]QueueAr.h[/URL] And for fun: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.cpp"]SplayTree.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.cpp"]QueueAr.cpp[/URL] [CODE]#include <iostream> #include <fstream> …

Member Avatar for crystality
1
735
Member Avatar for vnproduktionz

kind of a basic question but i cant seem to figure it out. well i have a list and i split it up using the split function but now im confusing how i can use one string and divide it to another. i tried turning it into a int or …

Member Avatar for vnproduktionz
0
167
Member Avatar for vnproduktionz

[CODE]reply=float(raw_input("Enter your choice: ")) if reply!=1 or reply!=2: print "Not a Valid Choice" [/CODE] i cant use while loops other wise i prob wouldve done so. Basically im trying to get the user input to only allow the numbers 1 or 2. anything else should give a not a valid …

Member Avatar for vnproduktionz
0
140
Member Avatar for LostnC

I need to convert seconds to Minutes, hours and seconds. I must use pass by reference in variables. I know I need to use the modulus to deal with the remainders when I'm converting to Hours, minutes and seconds. I am really having a difficult time with the code.

Member Avatar for yellowSnow
0
1K
Member Avatar for pyprog

Hey, everyone. I know how to strip certain characters from a string using for loop. Can you give an example of how that can be done with the use of while loop?

Member Avatar for Gribouillis
0
109
Member Avatar for jrosh

How can I limit the length of a text field.. I want allow entering specific number of characters in the text field?? Is there a constructor... I couldn't find 1.. plz help...

Member Avatar for BestJewSinceJC
0
120
Member Avatar for MrNoob

hey i got something again i got confused by in PE files and they don't rlly explain why happens oke so what im confused with FileAlignment and SectionAlignment files must be aligned or sections to whatever count is right ? like if the it's less than the number (x) then …

Member Avatar for MrNoob
0
105
Member Avatar for phoenix_dwarf

Hi, I'm trying to move "leftover" data from one database table to another after the user clicked on a button. Please can anyone give me some advise. This is kinda really urgent plz. Everytime i run my app it gives no error but also doesn't move my data. :angry: I'm …

Member Avatar for phoenix_dwarf
0
268
Member Avatar for Qmage

The do...while loop works fine when i key in only single character, however if i key in multiple characters, the default statement is executed infinitely. I think the problem lies in cin >> int?, i need some help in modifying the code, thx [CODE] bool rightanswer = true; do { …

Member Avatar for Qmage
0
89
Member Avatar for abu taher

I select a month from a combobox and type the year in maskeditbox then press a button to show the report. 1st the report show. when I select another month to show again the report then show a error msg: [CODE]run-time error 3705 operation is not allowed when the object …

Member Avatar for abu taher
0
316
Member Avatar for Mitja Bonca

What I want to do is a drop down list (comboBox) that the user can see only selected files. For example, if user selects a Word Documents from a comboBox, on the explorer will be only visible a doc files. I have done a FileFilter class: [CODE]public class FileFilter { …

Member Avatar for DdoubleD
0
102
Member Avatar for Gman36

Hi there, I'm attempting to write a program that does the target word puzzles you see in most major newspapers. The target word problem involves a 3x3 grid of 9 random letters that a user needs to be able to make words out of using at least the middle letter …

Member Avatar for Gman36
0
118
Member Avatar for Gman36

Hi guys, Just wondering if someone could help point out why the string value s1 in the for loop cannot be passed on to String input.... here is my code. Please ignore the commented out parts. Cheers for any help [CODE]import java.io.*; import java.util.*; import java.lang.*; public class gaelan3 { …

Member Avatar for Gman36
0
86
Member Avatar for bpt0004

Hi everyone this is my first post, i've been browsing for awhile and finally decided to join. I'm having trouble with an assignment i have in class. I need to calculate the euclidean distance between two 2d vector. The function takes in two 2d vectors of integers. I'm also having …

Member Avatar for bpt0004
0
2K
Member Avatar for cjay175

Hey, I was wondering how to obtain a hash value and pass it to php. URL: [CODE]http://www.mydomain.com/#id=110[/CODE] All I want to grab is just the "110". This is my javascript code: [CODE] <script> function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('#') + 1).split('&'); for(var i = …

Member Avatar for Airshow
0
2K
Member Avatar for Ghodmode

I'd like to use JavaScript to add rows to a table. It seems like an easy idea, but it occurs to me that the parent node of the rows might technically be a TBODY element. So, I'm wondering if I use appendChild to add a table row to a table …

Member Avatar for codejoust
0
322
Member Avatar for SoulMazer

Ok, well I am JUST beginning to learn Java, and I have run into a little stumbling block. I am attempting to write a little applet, but it doesn't seem to want to run. My Java code: [code=java] import java.awt.*; import java.applet.*; public class TestApplet extends Applet { public void …

Member Avatar for jasimp
1
144
Member Avatar for mms6

I need help with my Palindrome code For some reason, I cannot seem to convert the text into lower case letters and I cannot seem to ignore spaces and commas and periods and so on. Here is my code [CODE]def is_palindrome(user_input): i = 0 result = True while i <= …

Member Avatar for mms6
0
99
Member Avatar for jess99

Well, I did this program and it works, but my instructor wants me to use this statements instead of the one I used: My original code was: Dim DiscountVal As Double = 1.0 'ByVal arguments passed as by value (chapter VI) Dim BasePrice As Double = 9.95 Dim AdditionalPrice As …

Member Avatar for jess99
0
122
Member Avatar for sethm

Recently I found a way to upload an image path into a MySQL db while uploading the actual image to the server. This works fine, except sometimes I don't have an image to upload with the story. So - my question: If I don't have an image how do I …

Member Avatar for Atli
0
244
Member Avatar for walter clark

The clock() function works fine in Visual C++ Version 6. I used it for evaluating how many milliseconds certain functions needed. But with Version 8 it won't let me use time.h the library that holds clock(). Naturally the error is unreadable, but there's hundreds of them and its obviously complaining …

Member Avatar for walter clark
0
112
Member Avatar for Poopster01

this is the simple problem I'm working on. A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period …

Member Avatar for Poopster01
0
154
Member Avatar for EvanGolder

Hi all.. I am new to Python and I am here seeking help. Actually, I'd like to run a DOS executable file from Python. The DOS excutable file requires 5 inputs from the users, and I have tried some coding which apparently doesn't work. Can anyone help? Here is my …

0
47
Member Avatar for Rastafari

hi, I have a program that compresses a file but for some reason my output file comes up empty every single time ...I dont get it . can some body tell me what i might be overlooking The sample input file looks like this ..GGGGGG...OOOOOOOO...OOOOOOOO...DDDDDD and my function has to …

0
81
Member Avatar for Lida_pink

How can I get the sum of the numbers of only one textbox? For example text1.text= 1367 How to get the sum of this 4 digit number? I appreciate your assistance in advance. Lida

Member Avatar for Lida_pink
0
723
Member Avatar for Blondeamon

[CODE]public String expandTemplateTopic(String remark) { String random_word = findKeyWord(remark); String str=" "; String kok2=" "; int num1=0; int num2=0; int num3=0; //find a random template int number = generator.nextInt(sentenceList.size()); String argument=sentenceList.get(number).getTemplate(); //split it into words using space as delimiter List ls=new LinkedList(); String[] array =argument.split (" "); //find if there …

Member Avatar for masijade
0
161
Member Avatar for twoshots

I've just started learning Python but have hit a little issue when instancing a class. I seem to get errors like: AttributeError: type object 'Stuff' has no attribute 'a' or: AttributeError: class 'Stuff' has no attribute 'a' Clearly I'm missing something fairly fundamental :/ A quick test program shows what …

Member Avatar for twoshots
0
122
Member Avatar for sravan953

Hey All, I have made a program called "Pymailer", I have even made a GUI version... now what I want to do is to convert it to .exe format... how do I do it? I googled for some info, but in vain!

Member Avatar for sravan953
0
1K
Member Avatar for t_simpson

I'm a student but I'm not asking anyone to do my work for me, however I would like a little help if possible please. For part of my assignment I have to create a program that will issue a bepp of the value ( frequency and duration ) that the …

Member Avatar for t_simpson
0
75
Member Avatar for skrithikaa

Hi, I am new to ruby programming. I would like to know how to create a document and add elements like texts and tables. I also need to modify those and then write them into a file. Is it possible to do it with Ruby? Thanks, K

Member Avatar for codejoust
0
84
Member Avatar for Sachin_coder

private bool OpenDbConnection(SqlConnection sql_con_obj) { try { SqlConnection.ClearPool(sql_con_obj); SqlConnection.ClearAllPools(); if (sql_con_obj.State == ConnectionState.Closed || sql_con_obj.State == ConnectionState.Broken) { sql_con_obj.ConnectionString = "Data Source=.;Initial Catalog=Practice;User ID=sa;Password=sa"; sql_con_obj.Open(); return true; } else { return false; } } catch (Exception ex) { ShowMessage(ex.Message); } } I get following error on execution: Error 1 '_Default.OpenDbConnection(System.Data.SqlClient.SqlConnection)': …

Member Avatar for ddanbe
0
137
Member Avatar for 12d3

Hi, I've created a class called [B]MyClass[/B] which just contains some data: [CODE]public class MyClass { #region Private Variables private string _ValueA; private string _ValueB; #endregion public MyClass(string ValueA, string ValueB) { _ValueA= ValueA; _ValueB= ValueB; } public string ValueA { get { return _ValueA; } set { _ValueA= value; …

Member Avatar for ddanbe
0
139
Member Avatar for garcon1986

Hello Everyone. I want to make query with php combo box items. When the user click on the items of combo box, the following table will generate correspondent data. Now i can display data in one table, but i don't know how to use it with combo box. Does there …

Member Avatar for garcon1986
0
127
Member Avatar for LindaLou

Hi, I have created a statement using IF, ELSE IFs, ELSE, and it brings up PARSE ERROR UNEXPECTED T_ELSEIF in line... On checking for the solution to this error it often seems that a } has been included or missed, i´ve doubled checked my code and don´t think that this …

Member Avatar for LindaLou
0
119
Member Avatar for kv123
Member Avatar for YousefAB
0
128
Member Avatar for schnell

I have "Vertex" class pointers in a list. I want to delete these pointers and free up the memory. I deleted the pointers in the first for loop and set these pointers to 0. but just to check whether the pointers have really been deleted and set to NULL, I …

Member Avatar for schnell
1
113
Member Avatar for Stretcher75

I have a form the has some textbox controls. I have a script to request these control values to update a table in my database. The problem I am having is that I added the textbox controls to inside the TabContainer and now the request does not see any values. …

Member Avatar for Ramesh S
0
138
Member Avatar for stoymigo
Member Avatar for stoymigo
0
112
Member Avatar for AutoPython

Okay, I wrote a simple calculator, not in GUI form, but a calculator for simple stuff. So I'm wondering, would this layout be considered OO? I think this is how it works. Now I do know that I didn't use an object to handle the class since it just wasn't …

Member Avatar for AutoPython
0
216
Member Avatar for AirGear

guys, i have a project that needs using GUI in cpp. my lecturer suggests me to use Microsoft Visual Studio 6 and create a MFC based application. But i don't really understand how to use it. Can anyone please give me a link that can explain about that MFC stuff? …

Member Avatar for pspwxp fan
0
138
Member Avatar for FREEZX

I need to "decode" a string into numbers. it should convert 1=ij 2=abc 3=def 4=gh 5=kl 6=mn 7=prs 8=tuv 9=wxy 0=oqz so i made a code where i use a dynamic string array which should get filled up according to the above table, but when i try to print the …

Member Avatar for FREEZX
0
106
Member Avatar for dinilkarun

Hi Friends, I need to write a piece of code to identify if an Excel session(the process which is listed in the Task Manager) is already running or not?. Can anyone guide me with this? Any help will be much appreciated! Regards, Dinil

Member Avatar for dinilkarun
0
145
Member Avatar for gpss

Hi! I need some help... i searched a lot.. but dind't found or worked any code.. so i need help please.. i just need a simple thing... i want to show on a combobox, a list of the things that i have (inserted before on my database-postgreSQL) on a collumn …

Member Avatar for phobia1
0
142
Member Avatar for network18

my api parsing script has dynamic url, like scriptname.php?limit=100 here this last 100 will change;varying from 0 to the number of lines from the file returned by first cron. And i want to this script to execute as a cron job, but how this parameter 'limit' i should handle. any …

Member Avatar for network18
0
1K

The End.