199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aaronmk2

The if statment I am using in my main program is not working, it should return the else value, but is returning the information in the if part of the statment and then it causes a run time error. I am not sure what is going wrong. [CODE] que1.add("Fish"); que1.add("Whale"); …

Member Avatar for NathanOliver
0
87
Member Avatar for JJGarc1a

Hi everyone, I have the current situation, I have get done with the datagridview cellvalidation, but, I need that after the validation get's done, to set different columns values on the same datagridview. [code] If Vacaciones_HistoricoDataGridView.Columns(e.ColumnIndex).Name = "DataGridViewTextBoxColumn7" Then If e.FormattedValue.ToString() > Dias_Asueto Then MsgBox("Los dias correspondientes son " & …

Member Avatar for LennieKuah
0
3K
Member Avatar for rachS25

0 I am developing a project using Visual Studio 2008 in C#, I have added the class library within the project and set up the relevant references and used the relevant using statements. It seems to be a problem with just this one folder. can anyone help? this is the …

Member Avatar for rachS25
0
114
Member Avatar for SenTnel

I need to merge to identical tables, but one column (areas_sub_local_obj) has a reference to the Id column (Primary Key). I need a script to insert the data from table 1 into table two and to change the value in the column areas_sub_local_obj to the new Id that corresponds to …

Member Avatar for SenTnel
0
142
Member Avatar for jodhy

How can i randomize words that i have put into an array so for example if an array has the words: hi bye what how would i make it say a random one? THANK YOU

Member Avatar for jodhy
0
93
Member Avatar for glubbish

Hi all, When I click on the add button I get "exception class EdatabaseError with message 'DBedit2: Field 'RoomNumber' not found I am trying to get the max roomnumber to insert a new room max(roomnumber)+1 Its a fundamental hole in my knowledge here, on how to get a result from …

Member Avatar for glubbish
0
671
Member Avatar for xe_nayr

Hello, does anyone know how to access an item like a button in a windows application? For example, I would like to create an application that would be able to look at notepad's file menu and "know" that file, edit, etc on the file menu are clickable objects and identify …

Member Avatar for MaxDes
0
89
Member Avatar for nsutton

How can I randomly pick a string element out of a list or array? I'm making a typing aid and I have a method that contains lists of noun/adjectives and verbs. I need it to pick one thing out of each list and turn it into a sentence.

Member Avatar for nsutton
0
744
Member Avatar for genki01

After searching I've found how to make an onload alert box when the page loads. However what I want to do is 1. When user goes to page the alert box/pop loads w/o the page, just an alert box. 2. Once the user clicks on OK, the page loads.

Member Avatar for scrappedcola
0
114
Member Avatar for daviddoria

I'm having a bit of trouble with dynamic_casting. I need to determine at runtime the type of an object. Here is a demo: [code] #include <iostream> #include <string> class PersonClass { public: std::string Name; virtual void test(){}; //it is annoying that this has to be here... }; class LawyerClass : …

Member Avatar for daviddoria
0
71
Member Avatar for bbman

Hey, I'm pretty new to this language, so please excuse me for not using the correct terms. I have a function that goes like this: private void function() { SaveFileDialog x = new SaveFileDialog; ... } Now, should I dispose of it at the end, or will it do it …

Member Avatar for apegram
0
104
Member Avatar for Cheesecake87

Hey, Building a hotel booking system as a college project, And as I do not want to go through the building a calendar that shows dates that are already booked, aww can be bothered. ok the max number of days of stay allowed are 7, now I have thought of …

Member Avatar for arrgh
0
2K
Member Avatar for kedarm

Hi! I'm trying to use the opencv bindings of Python. I tried the following code: [CODE]from opencv.highgui import * from opencv.cv import * cam = 'cam' cvNamedWindow(cam) cap = cvCreateCameraCapture(0) while cvWaitKey(1) != 27: img=cvQueryFrame(cap) cvShowImage(cam,img)[/CODE] Although the window seems to open fine, I cannot see any image. I just …

Member Avatar for Ratzian
0
319
Member Avatar for sdhawan

Hi, can anyone tell me how to compare to keys of a hashtable.I have a situation where my hashtable have same keys.I know it cant be the same but i am inserting a hashtable of dictionary which do have same keys.Thanks

Member Avatar for sdhawan
0
118
Member Avatar for socal

[CODE]import java.util.Scanner; public class bankAccount { //instance variables public String name; public int number; public double balance; public double deposit; //constructor public bankAccount(String name, int number, double balance, double deposit) { this.name = name; this.number = number; this.balance = balance; this.deposit = deposit; } public double getBalance() { return balance; …

Member Avatar for NP-complete
0
123
Member Avatar for drt_t1gg3r

I am in need of clarification. I am still a 'noob' when it comes too C++. I get a lot of the basic stuff except passing arguments. I understand that you can pass by reference and by pointer and by copy. but things start getting really confusing from that point …

Member Avatar for drt_t1gg3r
0
186
Member Avatar for fable1380

I am new to VB coding so I'm trying some easy projects. I figured an alarm clock would be a good place to start. But I'm Having a hard time with the MP3 Part of it all. I want a pre-selected MP3 to start, when my timer2 is = to …

Member Avatar for huslayer
0
352
Member Avatar for gymangel812

I'm trying to use php to validate my form. I would like to validate a product_name box for being not empty, a price box for being numeric and having a decimal, and a quantity box for being an integer. Right now I'm getting an error: Parse error: syntax error, unexpected …

Member Avatar for xylude
0
108
Member Avatar for rajsharma_85
Member Avatar for rhoit

what is this "Werid charaters" its screwing my downloads... but echo seems to be find can any one know the solution pls!!! THis is what i did.. .only 1st seq goes fine... something goes stupidly wrong with this stuff.... [CODE] rhohit@64box:~/383 Anxious Friends$ for i in $(seq -w 1 18 …

Member Avatar for rhoit
0
128
Member Avatar for oaktrees

I have code that opens a URL, whose page looks like this... "A",31.49,"5/26/2010","4:00pm",+0.25,31.51,32.25,31.37,3811721 The code parses this web page and writes it to a CSV file. Here is a snipet of the code, [CODE] def __req(stat): url = ... % (stat) return urllib.urlopen(url).read().strip().strip('"') #Manipulate data from web and write to …

Member Avatar for oaktrees
0
86
Member Avatar for xaop

Hello, i have to create a program for- If the age is less than 18-You are still a kid 18-30 adult 30-60 middle age greater than 60-senior citizen else for any other impossible age (-ve or 0 age) ' wow ' Here is my attempt, [CODE]#include <stdio.h> #include <conio.h> void …

Member Avatar for abhimanipal
0
112
Member Avatar for jaysean

Hello forum, I am stuck with a field comparison problem for two files. In one file I have first names and other pet names. Now I am trying to get results where first names are within a 20 word range of pet names(+-20 for checking on each side of word …

Member Avatar for jaysean
0
149
Member Avatar for noobuser

Hi, I want to solve a problem( to be honest its my homework ) given two string, the print the permutation in ordered form. Example: ‫‪Please enter the first string:> abc‬‬ ‫‪Please enter the second string:> mn‬‬ ‫‪Results will be: abcmn abmnc amnbc mnabc mabcn manbc mabnc ambnc ambcn abmcn‬‬ …

Member Avatar for abhimanipal
0
88
Member Avatar for tomikimi

please how can i generate serial numbers like a bank account number from a text box.pls i need ur help i use vb.net

Member Avatar for dlplenin
0
115
Member Avatar for anuragcoder

Hi guys, I've compiled the code given below which allows the user to enter the address of a text file and then view it(the whole thing). But, as soon as input is taken, "openfile.exe has encountered a problem and needs to close. Send Error Report." When I Press Debug something …

Member Avatar for abhimanipal
0
198
Member Avatar for bryann

I am trying to get the IP address of my router and so i have found this code and it works perfectly on my pc. When i run it on my laptop however it outputs two addresses. One is the correct one and the other is just 0.0.0.0 I only …

Member Avatar for MaxDes
0
1K
Member Avatar for veledrom

Hi, I have never use CMS before and want to learn. For a beginner, do you think Joomla would be easy for me to learn or Drupal? Thanks

Member Avatar for peter_budo
0
135
Member Avatar for hsncvs

hi guys, i have a main form and what i want to do is to display the informations on another form (in listview) which has the input values on the main form. when i create a second form i cant access any of the controls on the main form. How …

Member Avatar for hsncvs
0
97
Member Avatar for mayank.15

I had this basic question. Suppose I have a directory on my computer C:\Abc\New. Now I can access this directory using : File file = new File("C:\\Abc\\New"); Now I can open all the files inside this directory using : File[] files = file.listFiles(); And I can process the files individually …

Member Avatar for mayank.15
0
323
Member Avatar for sdhawan

Hi Guys, I am trying to insert hashtable in databse but one of the key in hashtable is null.Can anyone help me write an exception for this.Or if i can just move to the next key . Thanks a lot [code] private void btnUrdu_Click(object sender, EventArgs e) { SqlConnection cn …

Member Avatar for Ketsuekiame
0
133
Member Avatar for AmericanRogue

Hi there, I am a High School CS student and I'm making a simple version of Deal or No Deal for my final project. I'm an trying to figure out how to find the money value in the player-chosen case and mark that cash value off of the fakeBoard. I …

Member Avatar for jwenting
0
2K
Member Avatar for Phil2:3

Hello all, I am new to C# and thought I would post here based upon a posting I saw here yesterday indicating it is a good forum for beginners. Have been posting on CP, but I think I am just annoying them there......:icon_sad: Anyway, I have been struggling with a …

Member Avatar for sknake
0
4K
Member Avatar for Osas106

Good day my every one outthere, first let me start by saying that i am a complete novice to c++ programming. i got myself into some trouble while debugging a win32 program in 2008 V.studio. i did post this thread some 24 hours ago but no good result so far. …

Member Avatar for Ketsuekiame
0
130
Member Avatar for 2eXtreme

Hello, I'm trying to write some javascript that will always allow me to float content over a flah player. To do this, the <object> tag needs to have a <param> tag added to set the wmode to transparent, and the <embed> tag needs to have the wmode attribute set to …

Member Avatar for shastry_1985
0
458
Member Avatar for apals

hi folks, i am using windows control library and plugged in a textbox,label,button and called it check_my_id althought the control gets placed on the form. i am not able to change the properties of label, button thanx in advance

Member Avatar for apals
0
194
Member Avatar for sdhawan

hi my table looks something like this: id word definition 1 welcome some def1 2 welcome some def2 3 welcome some def3 4 5 6 7 and so on for rest of the table how can i write a query so that all the definitions for same word get inserted …

Member Avatar for sdhawan
0
73
Member Avatar for nick3592

Hi, i am having a problem with a form where a user can enter there birthday when they register. In the database it does not show up, it only shows the default value 0000-00-00. I am using month, date and year in the form and i am wondering is there …

Member Avatar for JRM
0
136
Member Avatar for vlady

Hello, I learn tuples and I came acros the folloving explanation which I don't understand practicly because the scipt is not complet..., I think tha they want to show the direction but for me would be better complet example... so it's from document: Think Python (version 1.1.19) and text is …

Member Avatar for vlady
0
147
Member Avatar for jhonnatas

hi guys! i need ur help because im noob at web programming.well.. i would like to insert formatted text (html) in the mysql database and retrive it to a page. do i have to save text with all tags? what is the best way to do that? example: i hav …

Member Avatar for jhonnatas
0
119
Member Avatar for supidProgrammer

Hi! I´m new in this Forum. My problem is: I have two functions for replacing characters in a string. One in C++ other in inline Assembly: Example: Source string "björk" to destination string "bjork" In C++: [CODE] void ReplaceChar(char* s, int len) { for (int i = 0; i < …

Member Avatar for supidProgrammer
0
199
Member Avatar for programing

Hi ,all I hope that everybody will be fine I have q; How do I write simple [very simple] code that receives letters with stack [push,pop,over flow,under flow] for example . output: Enter later: A B C D E EDCBA i writed code that receives number .. but i face …

Member Avatar for NP-complete
0
150
Member Avatar for sugikrish

Hi .......... I attached screen shot with this thread. is this possible for calculating these two values and display the same page. This values retrieve from database.

Member Avatar for rajarajan2017
0
101
Member Avatar for kischi

Hi, Yesterday I downloadet and installed wamp, it worked quite fine most of it. I could put it on Offline and online mode if I wanted to, but when I tested my php page on the localhost by typing [url]http://localhost/index.php[/url] in the adress bar it would get directed to wamp's …

Member Avatar for rajarajan2017
0
147
Member Avatar for ghost_from_sa

hey guys, im having a slight issue with overwriting a certain record that is selected by a user Basically my application is meant to get user in puts and store them in a file which is refered to when updating, adding a new record, deleting, searching etc here is the …

Member Avatar for nbaztec
0
207
Member Avatar for vs.vaidyanathan

if not exists (select * from sysobjects where name='amrreconAccountsTB') begin execute "create amrreconAccountsTB(acct_id char(2048) NULL)" end; Message from server 'NOCTREPI04' (Msg 156, Severity 15, State 2): error near the keyword 'end'. Can someone please help me and tell me what is the syntax error here?

0
107
Member Avatar for trpsjt2008

Hello I'm Can't Find Any way to download Text File From My Free Hosting Cuz i can download from Direct link Website Like Fileden But My free Hosting it Say [B]The remote server returned an error: (403) Forbidden.[/B] How Can I get download file From My Hosting i use [CODE]My.Computer.Network.DownloadFile …

Member Avatar for trpsjt2008
0
111
Member Avatar for johndoe444

The following example is taken from GWT tutorial ([url]http://code.google.com/webtoolkit/doc/latest/tutorial/codeclient.html):[/url] [CODE]private void addStock() { final String symbol = newSymbolTextBox.getText().toUpperCase().trim(); newSymbolTextBox.setFocus(true); if (!symbol.matches("^[0-9A-Z\\.]{1,10}$")) { Window.alert("'" + symbol + "' is not a valid symbol."); newSymbolTextBox.selectAll(); return; } if (stocks.contains(symbol)) { newSymbolTextBox.selectAll(); return; } int row = stocksFlexTable.getRowCount(); stocks.add(symbol); stocksFlexTable.setText(row, 0, symbol); Button …

Member Avatar for JamesCherrill
0
102
Member Avatar for jellybeannn

When values are entered into 2 TextBox's(textbox1 & textbox2) they are multiplied with one another and the answer is displayd in a Label(label1), I need to add all the labels and display it in another label, this has to be don without buttons. When the TextBox's change this function is …

Member Avatar for jellybeannn
0
82
Member Avatar for speedy94519

I wrote a program that takes in this kind of input: [CODE]Short, Sue, , 3.11 Cisneros, Juan, G, 3.67 Andrew, T, 5.67 Superlonglastnamethatdoesnotfit, Betty, Boop, 2 Black, Shirley, T, 4.00[/CODE] and my program outputs this: [CODE]Highest gpa: 4.00 Average gpa: 3.19 Lowest gpa: 2.00 Sue Short 3.11 Juan G. Cisneros …

Member Avatar for nbaztec
0
119

The End.