64,152 Solved Topics
Remove Filter ![]() | |
Hi everybody! I don't know if this is possible to do, but here goes: Hi have a program where I have several lists. Let's call them l1, l2, l3, l4. Often in the code, I need to delete a certain item from 2 of the lists I have. I thought … | |
Hi all I have found 2 approaches in Object Oriented programming: [LIST=1] [*]Creating a "master" class that contains all classes, and creating a method for each operation. (With this approach you only have to pass the "master" class throughout different GUI screens) [*]Using only the classes you need in the … | |
Hello, I tried to use regex to search through blablablabla[B][url]http://www.myspace.com/username[/url][/B] by using preg_match('~http://www\.myspace\.com/.+"~',$string,$match); The tilde or lack of was tripping me up... am I even close? I was just trying to extract the username at the end, before it was marked off by a double quote ("). I tried adapting … | |
After a little research I discovered some Calendar methods that were pretty nice. [CODE=Java]Date date = new Date(); int daysSinceSeen = - ( rand.nextInt() % 365 ); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.add(Calendar.DATE, daysSinceSeen);[/CODE] How could this code be returning a date in 2010? Do I have a bug that … | |
I have a radio button list and I need to display a lable message when ever user select "A" i wrote some code in c# but its not working can sombody help me. [code] <td align="left" > <asp:RadioButtonList ID="RBl1" runat="server" AutoPostBack="True" CellPadding="2" CellSpacing="5" onselectedindexchanged="RBl1_SelectedIndexChanged"> <asp:ListItem Value="G" Selected="True" >Regular Grants</asp:ListItem> <asp:ListItem … | |
Hi - I'm writing a program the changes what you cut and paste. One problem is that it doesn't delete the text you cut... This is the function i'm using to delete text.. [code=csharp] //Deleting selected text public string deleteSelected() { string ret = ""; string str = textBox1.Text; MessageBox.Show(str); … | |
can we compile b.cpp by running a.cpp? i have koolplot project to draw plot. this plot should appear in the middle of the program, and if the plot is closed, the whole program terminates immadiately. To avoid that, i tried to make 2 cpp files. One for the main, and … | |
Hi! I'm working on a project and need a way to add a newline to the input stream, by code and not by user's help. The user should not need to do anything, I need a simple line of code that places a newline in the input stream, but I … | |
hello guys. dont know if this is the right forum. I am trying to [B]install Joomla[/B] and at step 2 it says [B]MySql No support[/B] [B]i have mysql installed[/B] and also have dbs created. Using php, i can access connect to the db and run queries. What am i missing? … | |
Good evening, I have the need to learn how to make a picture jigsaw with java. I have been looking for hours on the web for some kind of tutorial, source code example, something anything and I haven't been successfull in finding something I could work with. Would somebody have … | |
i currently have this nested list [[u'Alice Mee', 3], [u'Alice Mee', 4], [u'adam plowman', 1], [u'james pirret', 2]] I need to remove the last number from each list so i have something like [[u'Alice Mee'], [u'Alice Mee'], [u'adam plowman'], [u'james pirret']] the list is populated dynamically and will always change … | |
I want to get random numbers between 0 to 100..But i do not want the random number to be repeated. [code] Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim objRand As New Random objRand.Next(0, 100) End Sub [/code] Suppose first time random numb generated is … | |
Hi to all programmers.. i have a problem about this code .. i don't know what to do to this code.. i change a lot of code .. but always appear the error "illegal start of expression" .. I'm a newbie in Java.. please help me in this case.. thanks.. … | |
ok so i am working on a program that has a table of all the presidents and info on each of them. i tried to insert the date of their birthdays and deaths, but just got 0000-00-00 for a result when i went to see what the outcome looked like. … | |
Hi, I have a problem repainting Jpanel. I wrote a simple code just to check whether it works, but notnihg is happening. Function initPanelAnswer should initialize answer panel with some image, but I wanted to make it more simply. So, according to my logic, this should print out "Paint Component", … | |
Hello, i where making a game, and i needed a vector that holds class objects, i do the thing (below), and i thing i did it right, but it seems not and i dont know whats wrong :( [code]#include <iostream> #include <vector> #include <string> using namespace std; class Races { … | |
Hi I used the Data Source Configuration Wizard to connect to my access database, how do I write code to manipulate the data from the database? I read the book "Microsoft Visual Basic 208 step by step", it only teaches how to display data on the form. So how do … | |
Hi everybody, I am going to develop a web application by using jsp, in this application when I retrieve multiple rows from table into form as following : [code=jsp]<%Vector v1,v2; jmm.Database database = new jmm.Database(pageContext.getServletContext().getRealPath("/WEB-INF/config.txt")); database.jdbcConnect(); String sql; sql = "select question_text from tableA where type = 'Student'' "; v1=database.jdbcMultipleRowQuery(sql); … | |
Hello! I'm trying to use code to write to a text box - I know my strings are valid and that the function I'm using to generate them works, because I can successfully display them in a pop-up. Now I want to insert my string into a textbox at the … | |
I want to find the percentage for each question’s answer and how many user response to that question The answer either yes , no, escaped (null) Table structure :[CODE] CREATE TABLE useranswers ( userAnswerID int(10) unsigned NOT NULL auto_increment, answer varchar(45) default NULL, userType varchar(45) default NULL, ques_tesxt varchar(300) default … | |
Hi everyone; I have table contains question and answer columns , the answer either yes or no , I want to count the answer yes and answer no then compare the two results and if the count(answer) yes is greater than count (answer) no print yes else print no I … | |
I'm making a simple wxPython app on win32 that does a number of calls to external binaries. Everything works fine, except the GUI doesn't update well while the external process is running. This makes for an ugly window and non-updated status StaticTexts, so I'd like to fix it. Window . … | |
Is there a way to get all the arguments and put them in one string? I'm very new to C++, so I need all the help I can get. Here's what I have here: [CODE]#include <iostream> using namespace std; int main(int argc, char* argv[]) { cout << "argc = " … | |
I am designing a pocketpc app to manage service delivery at restaurants. I have designed the interface of the app and defined the schema of the database using a Microsoft SQL Server Compact 3.5 database file. I cannot figure out how to interact with this file tho, I'm using vb … | |
hi, i need some help on inserting checkbox values into the mysql database. what sort of data type should i use for mysql to store these? for example i need to insert a few hobbies as checkbox 1.basketball 2.football 3.hockey i need to be able to perform a search and … | |
Hi all. i am writing a simple log in program and i would like to have a class for users that stores the user name and the password as strings. after i have a user created i would like to output the class with the ios::binary flag set and store … | |
Hi!, I have created a user inteface named "helpGUI". This user interface contains a JTextArea. I also have created a text file named "help.txt". I need to show the "help.txt" file in the JTextArea. As I'm new to JAVA I have no idea how to do this. Given below is … | |
Well I have a doubt about where can I find some examples about this funcion, I need to use it on a program. Any ideas are welcome xD | |
Hello again, I'm trying to create a text field that only accepts numbers, a single decimal, and a dash (for negatives) but only as the first character. I have conquered everything except for pasting, and have no idea on where to begin. Below is the current code (working!) code that … | |
I'm taking a stab at multiprocessing and I need one process to tell the other to run a given function. On the receiving end, I'm trying to figure out how to interpret the message it gets. I could set up a big nest of if/elif to test for every possible … | |
Good morning, I have been trying to research the net on the subject of "how to set a folder view utilizing a VB.form button", I've found references to the "IFolderView : SetCurrentViewMode Method", but no concrete examples I could work with. I haven't been able to find what I need … | |
Dear Sir, It is a simple example using a string. [code] program dowhile; {$APPTYPE CONSOLE} uses SysUtils, OurCrt; var my_words : string; begin my_words := ''; writeln('Enter some words (type "stop" to finish):'); readln(my_words); while (my_words <> 'stop') do begin clrscr; Writeln('You typed:'); writeln(my_words); writeln; writeln('Enter some words (type "stop" … | |
[code] i want a program which asks the user to type the password. If he goes wrong three times exit.this is my code import java.io.*; class password1 { public static void main(String args[])throws Exception { String pass="samarth"; boolean flag=false; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String [] password=new String[20]; int i; for(i=0;i<3;i++) … | |
Hi all! Does anybody know how to generate a makefile from a visualStudio project? I kind of remember this was possible years ago, but can't find this option on the VisualStudio Express edition 2008 I am using now... I have to transfer projects from VS to eclipse and need the … | |
I have implemented a log-in routine that I thought captured SESSION variable to use through out all my PHP pages of my site. Here is the snippet of code which sets the session variables: [CODE] if($result) { if(mysql_num_rows($result) == 1) { //Login Successful session_regenerate_id(); $member = mysql_fetch_assoc($result); $_SESSION['SESS_MEMBER_ID'] = $member['id']; … ![]() | |
I am making a script which manipulates ID3 tags. I want a certain function to be used on every file in a directory recursively. I have written the script but it is not behaving like I would expect in some cases. If I give it exec perms and put it … | |
hi guys, i have a php page with java script embed in it , i have 3 forms in a [B]single page [/B]... namely form1, form2, form3 . form 1 and form2 have a text box , these text boxes get input from users. Now my task is to get … | |
I want to be able to find a class with a variable in it: [code=c++] for(int i=0;i<classes.size();i++) { if(class[i].name == classes[i]) return class[i]; } [/code] I think class would be a list of classes that are instanced. where classes is a vector of strings. Is this possible? | |
Hi all, Been at this for a while now and finally gave in to seek help. Basically, I'm trying to setup a regular expression for a decimal. Where there's 1 to 7 integers in front of the decimal point, and 1 to 2 after the decimal point. This is what … | |
Hi! I have added an action listener for a button. When i click this button it should go to the second tab in the tabbed pane which i have created. I have created two tabs as follows: [CODE] tab.addTab("Change Password", panel1); tab.addTab("Add new User", panel2); [/CODE] and the action listener … | |
Hi, I'm somewhat new to C# and I've created a numbers (backspace, delete, negative, and decimal) only text box. However the way I'm testing whether to allow for negative numbers only allows them to be added if they are typed as the first character. Below is in an if statement … | |
Hey I just got this book Accelerated c++ and it seems pretty good, but I'm having one problem in chapter 4. When I compile my grading program in chapter 4. I can't get the final version to work. I believe I'm supposed to enter a students name followed by grades, … | |
Howdy, I am quite unskilled on UI but have been tasked with looking at behavioral problems on our site. It has been observed that the app acts differently when a user clicks on a submit button with a mouse versus tabbing to it and the pressing Enter on the keyboard. … | |
Hi, I am trying to schedule a python compiled file to run using windows scheduler. But it does'nt run successfully The script writes to a SQL server database installed on the same machine as python and the script resides on the same machine. The script imports the urllib, sys, threading, … | |
Hi, I have a DropDownList (filled in the rowCreated method) in a TemplateColumn in a GridViewRow. A user can add a row to select another value in the new dropdownlist created. I need to trigger a validator (I need this because this is only a small part of a site … | |
hi guys, i want to be able to have three different names for one program. to do that i can create two other setup projects and change the product name, but i dont feel like it is proper way of doing that. so i need to run setup project with … | |
i have register form with some information about users, there is few textbox, some dateTimepicker, and some combo box that takes the data from a database (ODBC). the textbox and the datepicker works fine and insert into the data but i cant handle the data bound combo box. PLEASE HELP … | |
I am having a problem with a select that is showing thru an opaque div. See attached image(sorry, but this is an internal client app and I cannot show more). The blue horizontal line on top is the edge of DIV that I am displaying containing the text you see. … | |
I am trying to plot my way through coding a BCC Bulk HTML email. I can't get the code below to work and I want to also call another query to grab the emails for a BCC email. SPAM security would be helpful if it is easy enough to add … | |
i have to access an array within an array using php, and i have very little experience working with php. can anyone point me towards a good tutorial or show me an example of how to go about it? eg: [0] contians [a],[b],[c] many thanks |
The End.