64,152 Solved Topics
Remove Filter ![]() | |
.contains seems to return true for most things, even if one or two chars match. Is there a way to make it more restrictive? | |
im new to java so if im doing some thing the wrong way please let me know this is the class that connects to data base and grabs all the info from colum 1 and colum 2 that part works now when i try to either make it a useable … | |
I’m trying to initialize a combo box with the content of an INI file. Each line of the file contains a name for a website and the path to that site, tab delimited. I’m trying to read the file into a list so I can sort it etc. Visual studio … | |
Hi, I am trying to write a program that will separate the digits of a non-negative integer and will print them each two spaces a apart but I have to avoid using arrays. For example if input is: 12345 then output should be: 1 2 3 4 5 I have … | |
![]() | Alright, I have a Textbox which I want to display some text, but when the user clicks on it, it should clear so he can write what he wants. ![]() |
i have two textbox's... these textbox's can have formatting applied etc, but they lose focus when a button is pressed, and the wrong textbox has formatting applied.. is there a way to track the last textbox to have control?. some kind of for each control f type textbox, if mouse.click, … | |
hi guys just ask what is the code for allowing null values to appear on the textbox [CODE] Dim i As Integer dg1.DataSource = bs i = dg1.CurrentRow.Index Patient_Profile.Txtpatient_id.Text = dg1.Item(0, i).Value [/CODE] | |
i am quite new to java i used to code in c++ but now we have to program in java which has not been taught. i browsed net but casn't get enough information this is my first code which i managed to get from net [B]i am using GNU java … | |
OS : win7 64bits compiler : visual C++ 2005 boost version : boost_1_44_0 [code] #include <gtest/gtest.h> #include <tchar.h> #include <boost/signal.hpp> #include <boost/bind.hpp> #include <boost/function.hpp> #include <boost/mem_fn.hpp> class Slot : public boost::signals::trackable { public: void Update(int) { ::printf("Signaled!!\n"); } }; int _tmain(int argc, _TCHAR* argv[]) { boost::signal<void (int)> s; Slot *slot … | |
Anybody have any idea about how to change the font of the string. Suppose [CODE] Dim strFind as string="Answer" [/CODE] I want to change the font of the string as "Verdana" Purpose behind that, I have an richtextbox1 contains the questions and richtextbox2 contain the answer so while concating i … | |
Can any body tell how can we pass values from controllers or Models to views in codeigniter? | |
Hi guys, is there any build-in function in C# that can detect if a string contain Chinese/Japanese character? This string may contain alphabet, numeric, chinese and japanese characters. Appreciate any advice please. Thanks in advance! Cheers, Mark | |
Hey guys. I have written a program to create, edit and delete record in MS Access using a visual studio program. I am keeping the program and database divided into a front end and a back end to allow concurrent users. I am going to place the back end on … | |
Hey guys, I've got a theoretical question. I've tried to work out how some of the code would work in my head, and I always stump myself. Maybe it's my lack of knowledge - who knows! I am trying to create an online forum inside of my application. Yes, I … | |
these one code, from line [63-71] of the original code [CODE] // for adding more students cout << endl << "Want to add more student?(yes/no): "; string add_student; cin >> add_student; if(add_student == "yes") { student_counter = 0; } [/CODE] the program seems "doesn't detect" the cin code above, it … | |
I have five sheets named 'Yearly,Q1,Q2,Q3,Q4'. currently my code only update one worksheet at one time into the mySql database. i want it to get all worksheets to be done at one go. i've tried to implement 'For loop' but it just run on the active worksheet only. is there … | |
Hello all Does Caret Event only for one component only ? I tried to find example for more than one TextField which added with CaretListener,but cannot find one. Anybody know website or has example like I need ? I need to know how to detect which component arise the CaretEvent … | |
I've looked extensively for an answer to this but have gotten nowhere. Here’s what I’m trying to do: I’m having people submit a form on my Wordpress site telling me their pledges for a volunteer campaign. When they submit their volunteer project I want to have a counter track the … | |
Hello folk i am a new member n i need Ur help to do my course project for developing Sudoku game i already have my codes but i need a code for generating random numbers in the grid this is basically my code [code]import javax.swing.*; import java.awt.*; import java.util.*; /* … | |
I have an assignment to make a paint program using java but i am kind of stuck at a roadblock. I have a pencil tool and i used the mouseDragged, mousePressed, and mouseReleased methods of mouse(motion)listener to draw my path using general paths (lineTo and moveTo). My question is, is … | |
Hi forum, I am just wondering how I could just use the last two digits of a four digit year the user inputs. For example, I want to drop the [19] from [1960] and just use the [60] which should be 3C in Hex so the registers would read it. … | |
Hi There, I have an XML data [code] <coordinators branch="xx"><coordinator cnum="xx"> <value key="role" type="string">BC</value> <value key="role_desc" type="string">role</value> <value key="name" type="string">xx</value> <value key="tel_number" type="string"/> <value key="email_address" type="string">xx</value> </coordinator> <coordinator cnum="xx"> <value key="role" type="string">BC</value> <value key="role_desc" type="string">role</value> <value key="name" type="string">xx</value> <value key="tel_number" type="string"/> <value key="email_address" type="string">xx</value> </coordinator> </coordinators> [/code] I need to … | |
Hey guys, I know this will have an easy answer, but I have been awake far too long to see it :P I am doing some coding with classes in python, and it just isn't working. Here is the code: [CODE] from bpy import * from os import * from … | |
I am a fairly new programmer still in school, and trying to have my program write the selected information to a designated file. I keep getting an error message on my file OutputStream. [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.text.*; class ExampleJComboBoxSample extends JFrame implements … | |
can somebody help me out by providing link to the stuff related to buffer reader in java to read a trace file and store it in array of string. | |
Hi, I'm making a console application, text based game, and what I need to do is be able to do more than one thing at the same time. For example, I need to be able to make a timer that runs constantly, whilst the game is being played. I also … | |
Hi I had a real estate web site and user/visitor can post their property into the database. Now What I need is After 15 days the post will be delete automatically. Please any give me the idea for doing this. "How to do delete using Date ?" Please Help me.. … | |
Write a shell script that will accept any number of command line interger parameters a d do the following....I have to use a if statment for the lowest and highest values??? Determind the lowest and highest values? Determind the sum of all parameters entered? | |
I have a basic search result page going right now, but i want the code to generate a html link on the search name so I can see all the data associated with the customer name. I have a simple DB set up with Customer Name, Computer type, Model, etc. … | |
Hi all, I am trying to write a code that could show multiply values in a single cell of listview with comma separator... i am using C# with windows application... I have a attachment that show what i am asking for... Thanks in advance vince | |
Hi, there :). I have a form named 'Form1' in which I've added a custom control called 'first'. Inside 'first' there's another custom control called 'second'. I want to access and change the properties of 'second' using a function, declared in 'Form1'. Can you, please, tell me how to do … | |
Hey, I am developing a game in C#. I have some question marks in my mind about properties. -Should I return reference in a get, or should I clone the reference and return a clone? If I return a reference then in another part of the program, it will be … | |
I need to implement video streaming in my page with adobve flash player.IN this a user can seek any part part of video. | |
hi everyone I have been programing in c++ for a while now, but I'm asked to write project in c#, so is hard to learn it ?? also I have never wrote a program with interface , so is it possible to write console application then build the interface ? … | |
Hi, I have a mysql database for stock records in the pub I work in. The code below displays the list of items and sizes, what I need is to be able to update several rows by subtracting the number in the qty column from the bal column in the … | |
Hello Lets say I have these two classes; [CODE] public class BFF{ private String name; private String surname; private Object friendships; }[/CODE] [CODE] public class BFFG<T>{ private String name; private String surname; private T friendships; }[/CODE] Is it possible to create a generic method that could create a Set of … | |
hey all,, I have this picture to be more clear: [URL="http://img846.imageshack.us/img846/5996/95028490.png"]http://img846.imageshack.us/img846/5996/95028490.png[/URL] My idea is when I paste (ctrl+v) for example this number : 4111111111111111 it would automatically paste them in textboxes one by one in order! so txtBox1 will contain : 4111 txtBox2 : 1111 txtBox3 : 1111 txtBox4 : … | |
Hi, I wonder how to create a search box like the following website: [URL="http://www.ferron-pharma.com/?q=en"]http://www.ferron-pharma.com/?q=en[/URL] The search box is on top right corner. Is it using jquery ? Besides the codes, how to create the outlooks ? | |
Am using VB.NET with Ms Access. It worked fine before changing the field name in access database. After changing the field name i got an syntax error in catch block. And also there is no reserved words. [B]"Syntax Error in INSERT INTO Statement"[/B] Here is my coding str = "Insert … | |
Hi I would like the following action to happen without having to have a 'submit' button. This would avoid users having to go from one page to a second page and the action could just happen on the first page by clicking on the word? How could it be done? … | |
So basically I need to find a way to evaluate an infix that's been converted into a postfix. The code below takes an entered infix and converts it into a postfix but I don't know how to take that postfix and evaluate it. Every single tutorial I've seen evaluates a … | |
I have some question about boost::promise After studying the website of boost and "C++ concurrency in action" I still can't get the idea of boost::promise According to the book(if I have no make any mistake) boost::future is designed for one off event you could wrap the task by packaged_task and … | |
Hi, I would like to write a member function with a default argument, but the value of the default argument I would like to use is the value of the classes data member [CODE] class testdf {// testdf private: const int _defaultVal; public: testdf() : _defaultVal(1) {} int testMF(int arg … | |
I just got this script for a countdown on a website and I got it to work locally but when I upload it to the server i get the error "index.html:22 Uncaught TypeError: Object [object Object] has no method 'fancycountdown'". I have checked to make sure all other javascript files … | |
I've tried searching for articles that relate to this issue, but all I keep finding are articles about people who don't know how to define constructors/can't call the parent constructor/etc and I think this will cut straight to the chase. The problem code is as follows: [CODE] #include <stdio.h> class … | |
Hey, I am trying to get this working but failing! I am trying to make it so when you click the heading it opens the nab to do with that heading, and remember it... so next time you go onto the site it will remember what tabs you had open … | |
Not even sure if this is the right spot to post this, but I didn't see any other place. (might have missed them) I have WAMP installed on my computer per the instructions from the book I'm using from Site Point. After I installed it, everything ran just fine up … | |
Hey guys just wanna tell you now that I chose to do a minesweeper game or attempt to do one for a class project in VB. Now I'm not that experienced of a programmer so this is fairly difficult and I can tell you that I'm in way over my … | |
[CODE]#include<stdio.h> #include<string.h> #define SIZE 100 int main(void) { int array[SIZE], i, n, j, sum=0; printf("Enter some integers:"); for (n=0;n<100;++n) { scanf("%d", &array[n]); if(array[n] == -1) { j=n; break; } j=100; } for(j<=100;i>j;++i){ printf("%d", array[n]); } for(j=0;j<n;++j){ sum=sum+array[n]; printf("The sum is %d\n", sum); } return (0); }[/CODE] [I]Im trying to output … | |
Hi, I want to Map a single key to array of values. Is that possible? |
The End.