199,114 Archived Topics
Remove Filter ![]() | |
Hi, Just wondering if someone could explain why this is happening: [code] >>> example = "" >>> example in "Hello there" True >>> [/code] I'm confused as to why [ICODE]example in "hello there"[/ICODE] gives a True value as return. ![]() | |
Hi everyone am new to java-ing i cant seem to create a class for my first application my "Hello World" when i type javac helloworld it returns that javac is not a in the path and i have created a path for java. Please help me. | |
I created a table in mysql db. it has a column with auto increment value. i checked inserting data through mysql console putting jst ' ' to the place of the auto increment value in the query. it worked ok. but when i do it through my java application (using … | |
hi it me again... i need to show an image(a gif) in a blank wndows form (border less). he think is the place where the image is going to be visible...... when some one moove the mouse ponter to some place on the form and wait for their for some … | |
1. How do i close 2 forms in runtime. Eg. I click BTNCANCEL in frm1 it will open frm2 and i want to click BTNNO in frm2 to close all forms in the runtime. How do i go about doing that. [frm2 is just asking the user whether to save … | |
Hello guys i need help on my program factoring.... i have the progam here but the bad news is it is been giving me -3242 or infinite number as an output... I already been so busy changing any thing but i cant make the output correct the way it should … | |
Okay here is the just of my assignment: Write a test program that creates an Account object with an account ID of 1122, a balance of 20000, and an annual interest rate of 4.5%. Use the withdraw method to withdraw $2500, use the deposit method to deposit $3000, and print … | |
Does anyone know how to correctly add a 3rd party library to NetBeans? I have NetBeans 6.7.1 The library is from this site : [URL="http://wps.aw.com/aw_sanders_oopjava_1/36/9390/2403930.cw/index.html"]Link[/URL]. Its called wheels, and its for my class. It comes in a zip file. What I tried was this : 1) Set the zip file … | |
This is my code: [code] Private Sub cmdHitung_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdHitung.Click Dim tempBASIC As String If strChrDec = "." Then strFormatDec = "#,##0.00;(#,##0.00)" formatSAVE = "############0.#0" Else strFormatDec = "#.##0,00;(#.##0,00)" formatSAVE = "############0,#0" End If If Val(Format(Convert.ToDouble(txtGajiPokok.Text), formatSAVE)) > 0 Then If Trim(txtGPPilih.Text) = … | |
I need to rotate text by 90, 180 and 270 degrees. How can i achieve this in firefox2. In brief, what i am doing is, there is one main container div whose background is set by 600x400 image. There are 4 inner divs each having some text. Now i have … | |
(Credit card number validation) Credit card numbers follow certain patterns. A credit card number must have between 14 and 16 digits. It must start with: • 4 for Visa cards • 5 for Master cards • 37 for American Express cards. • 6 for Discover cards In 1954,Hans Luhn of … | |
I'm trying to scan a line from a data file(txt format) it just contains a line of ints ex. 3457983257892 I need to scan the line and get the total number of individual ints. Basically, 34563456 would total to 8. I'm not sure how to manipulate a while loop using … | |
I have a few nice ideas for a game that i would like to make, involving some, what i see as, pretty advanced coding requirements. all i would like is a site with some nice begginer tutorials, i think i can take it from there, also your favorite program or … | |
[CODE]#include <iostream> #include<vector> #include<ctime> #include<algorithm> using namespace std; struct student { int id; char name; char nationality; char gender; student() : id(0) , gender(' ') { } student(int i, char g) :id(i), name(g) { } }; void insert(student array[]); bool sortByID(const student& a, const student& b) { return ( a.id … | |
Hi I hope u can help me... i have a code that connect to mysql db and it works fine. [CODE] using System; using System.Collections.Generic; using System.Text; using MySql.Data.MySqlClient; using MySql.Data.Types; namespace MySqlExample { class Program { static void Main(string[] args) { string host = "localhost"; string database = "articles"; … | |
Hi guys, I am new with c++, so please bear with me... I am reading in a text file that similar to this: $ABCDE,12345,12345,12345,12345.... I need to be able to place each number in a variable like: A = $ABCDE B = 12345 C = 12345 ... I can get … | |
i am developing 64 cell(column) for 20 rows of automata. I need to compare each cell (in a row) with the left and right cell. And then, after i finish 1 row, i need to do it for the next row. So, for example, after i have compared each cell … | |
I'm just new in php actually and this is the problem that i have been encountering lately. I actually have one .html file and .php file, on the .html file I created a form which looks like this: [CODE]<table cellpadding="0" cellspacing="5" border="0" width="500" align="center"> <form name="FAQ" method="post" action="question.php"> <span style="font-family: … | |
Ok so I have two separate AJAX function that I want to combine but have no idea how. The first 2 files are to call up a table with cells in the form of text-boxes, and the last 2 files are linked dropboxes. What I want to do is to … | |
Echo google problem Please advice you inputs are greatly appreciated [CODE]<?php if (empty($_GET['q'])){ echo "What are you doing?"; } else { /* getting value from the search form creating a new variable*/ $ser = $_GET['q']; /* applying logic and creating a new variable to it*/ $logic = "~resume (filetype:pdf OR … | |
Got stuck How to make $newUrl a hyperlink in a different html page new to php code [CODE] <?php if (!isset($_GET['p']) || empty($_GET['p'])) { $_GET['p']=0; } if (empty($_GET['q'])){ echo "What are you doing?"; } else { /* getting value from the search form creating a new variable*/ $ser = $_GET['q']; … | |
Hi, I am having python 2.4 on linux machine. I am using exec funcation as: objconfigfile=open(path, 'r') for line in objconfigfile.readlines() if line == None: continue exec(line) It is throwing exception as: invalid syntax for "exec(line)" Please let me know the issue, do we have exec function in python 2.4? … | |
I need to populate an array with the items a user has selected in a listbox. Example: Listbox contains A, B, C, D, E User selects B, D, E create an array containing B, D, E What method would I use to do this? I've found plenty of info for … | |
Alright. Basically the point of this program is to allow a user to select how many fractions they want printed on the screen. It is supposed to print 3 fractions PER line. If a user requests 4 fractions..it would print 3 and print the 4th fraction by itself on the … | |
I'm working on this problem that has n positive integers in a row except for the first column, which always contains zero, these numbers represent the cost to enter each column. I'm supposed to get to the end of the board with the path that costs the least. I can … | |
![]() | So I guess my question is: Can I grab an entire line using cin.getline(), and grab an entire line and ignore the whitespaces? What I'm trying to do is grab the following line: 2 3 and I want to know how many numbers are in it? OR maybe a better … |
I think this is more of a SQL query but how do I change my Grid Viewso that it displays a currency in the proper format of $ with 2 decimal places only? As it stands it is only like 194.9500 format. Cheers again. | |
I have a text box for number input. Validator works fine for range 1 to 100, but it still allows the return key to be used. I want to tell ASP.NET, using VB, to ignore a return key press. Any ideas? | |
In a textChanged event for a textBox I am trying to do a search function for ListBoxItems like below. It seems that I have done the code correct but no items is selected and when writing a string that is longer in length than the item that is shortest in … | |
Sorry about a n00b question but I'm having trouble. I'm messing around with linked list to try to get a good handle on them for the program I have to write. The program below was intended to fill a link list with structures then print out each structure. Instead it … | |
Hello Friends, What is the code i have to write on Button click event to perform signout from a web page using C#. I have just wriitten the code Response.Redirect.But if I use back Button it is coming back to the page again. Please help me . thank U. | |
[code] #include <string> #include <iostream> #include <fstream> #include <list> using namespace std; #include "mono.h" int main() { int e; string m; string z; string fname; mono * mptr; mono * mptr2; list<mono>P1; list<mono>P2; list<mono>::iterator P1itr; list<mono>::iterator P2itr; cout<<"Menu"<<endl<<endl; cout<<"A Enter two polynomials from a file"<<endl; cout<<"B Enter two polynomials via … | |
hi guys I have heard that for displaying message we generally use MSGBOX function in VB.NET and we use ScriptManager.RegisterStartscript in ASP.NET to display message box... but I have tried to use Msgbox function in ASP.NET and it works here also... [COLOR="Red"]So is it ok to use Msgbox function in … | |
Hi, I am creating a page that has two dropdowns. One drop down needs to change dynamically depending on the selection made in the other. So Dropdown2 values depend on dropdown1 selection. To do this I am trying to add code to the Dropdown1_SelectedIndexChanged event. The data comes in from … | |
How can I use cfloop or query my database so I can select home game and away game for multiple selections. I need to select 1 selection for home and away game but have to be able to select 1 of each. here is my output [URL="http://67.219.102.67/wcfootball/index2.cfm"]http://67.219.102.67/wcfootball/index2.cfm[/URL] [CODE] <script language="JavaScript" … | |
now i m working in ASP.Net i created tables named customer and Product now the task is to create a web form for bill based on the products that was bought.Please help me.... | |
Well.. It's actually pretty simple.. I just created this real quick project to try out a new (and better ;)) way of loading images in XNA Game Studio 3.0 Visual Studio C# 2008 Express Edition but when I run & debug (F5) I get a warning telling me that I … | |
hi iam tried to send mail but see how it appear iam use mail function when i make 2 line the message appear line one [COLOR="Red"]\n[/COLOR] line 2 and how i can make it go to the inbox and not spam and its appear some time strange how can i … | |
[CODE] <?php $ser = $_GET['q']; $logic = "~resume (filetype:pdf OR filetype:doc OR filetype:rtf OR filetype:htm OR filetype:html) skill -jobs -apply -submit -required -wanted -write -sample"; str_replace ("skill", "$ser", $logic); echo $logic; ?> [/CODE] I am not able to replace skill please help New to PHP Please advice Thank You | |
im busy with a school project to create a photo viewer type site with java script. the whole thing i being created from java script and im giving all the img's an ID tag how do i go about getting the id of the img that i have just clicked. … | |
hello i m suppose to do this program which should pass array of ptrs to a structure intilise and put student[i] info in each array i did most of it but now i got problem coz i cant just pass address of structure since its an array of ptrs to … | |
hi i want to get it's implementation as soon as possible. i will be thankful for your help. :icon_redface: | |
hey guys,,could you help me bout my problem? I want to make a function and i want to preselect its ID's not its values,, this is my code [QUOTE] function getVisibility(){ echo "<option id=0>Inactive</option> <option id=1>Active</option> <option id=2>Active on Website</option> <option id=3>active on churchwide calendar</option>"; } [/QUOTE] I want to … | |
This is what I have so far. This isn't working and this isn't even close to working. I'm not that experienced at C++ so I was hoping that someone would help me please. The assignment is basically to write a code to validate an email address to see what characters … | |
echo $_GET[x] changing it into variable... any code sugessions Please advice new to PHP some inputs first change $_GET[x] to variable and then echo | |
Got bored and made a function that handles filling strings similar to mysqli bind_param. It actually gets used a lot in my code. Figured someone else might find it useful. Example usage: Using question marks as place holders [code] $str = 'Hello, my daniweb user name is ? and my … | |
[CODE=PHP] <html> <title> consonants vowels and numbers </title> <body bgcolor=red text=white><form method=post><font size=15> Enter a word(s):<input type=text name='phrase'></br> <input type=submit value=generate></br> <?php $vowel; $conso; $nums; switch($_POST['phrase']){ case'a': case'A': case'E': Case'e': Case'I': case'i': case'O': case'o': case'U': case'u': $vowel+=1; break; case'0': case'1': case'2': case'3': case'4': case'5': case'6': case'7': case'8': case'9': $nums+=1; break; … ![]() | |
Hi there im very new to VB.net. However ive bee told its the best place for me to start if i want to program a small application for use with my family business. Basically i want to be able to enter the type of employee. Either (Manager, Help Desk or … | |
hi i don't know it is wright place for it or not. i am new in javascript programming. i am try to implement find and replace functionality. in it i want to search keyword in particular div only. not other part of the page. i have implement following code function … |
The End.