199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for harshaaithal

i am a beginner ,just started using python from 1 week..... without using time.sleep()... i want a handler to call a function whenever timer of 1 sec expires repeatively....

Member Avatar for jrcagle
0
4K
Member Avatar for nani_amb

hi.. i'm having trouble with my project.. i keep getting "Unhandled Exception" [code=c++] # include <conio.h> # include <stdio.h> class bank { float x; public: void deposit(); void withdraw(); void disp_det(); }; void bank::deposit() { float more; printf(" enter the amount to deposit: "); scanf("%f", more); x += more; } …

Member Avatar for amitahlawat20
0
115
Member Avatar for aminit

Hello all: I create a simple source file in VC++ , I tried something simple,there is two strings: string1:MICROSOFTCPP string2:HELLO I want to write a code to make string2 is equal with string1,so it must be string1:MICROSOFTCPP string2:[COLOR="Green"]HELLO[/COLOR][COLOR="Red"]HELLO[/COLOR]HEL so it seem the string2 its repeat itself until it's length is …

Member Avatar for amitahlawat20
0
120
Member Avatar for vijukumar

hi all... this is my Table CREATE TABLE `client` ( `client_id` tinyint(4) unsigned NOT NULL auto_increment, `client_name` varchar(255) NOT NULL, `client_email` varchar(255) NOT NULL, `client_phone` int(20) unsigned NOT NULL, `client_mobile` int(20) unsigned NOT NULL, `client_country` varchar(255) NOT NULL, `c_billing_address` text NOT NULL, `modified_date` int(11) NOT NULL, `edited_date` int(11) NOT NULL, …

Member Avatar for ryan_vietnow
0
94
Member Avatar for Code.n00b

[code=c++] #include <iostream> #include <cstdlib> using namespace std; double amountSold; double galSold; double price; int start; int pump; int main() { price = 2.85; galSold = 0; pump = 1; while(pump==1) { cout << "Sales Total " << amountSold << endl; cout<< endl; cout << "Gallons Of Gas Sold " …

Member Avatar for WaltP
0
121
Member Avatar for afg_91320

hi. i am working on an assignment where i have a file that has a list of numbers. using those numbers, i should be able to create a program, where when prompted, i can find the mean of the numbers from that file, the biggest numbers, etc. the output would …

Member Avatar for WaltP
0
95
Member Avatar for Run.[it]

When Im browsing with either internet explorer or firefox and I recieve an error I get a window popping up asking If I want to debug in visual basic. Im guessing there is a setting in visual studio to turn this off? debugging? Could someone advise, thanks kindly.

Member Avatar for Run.[it]
0
131
Member Avatar for ae1

This has become a horror, a horror I tell you. I am not a techie. I am not a developer. I do not want to be a developer. I am trying to set up a pro bono program for a non-profit law office that serves the poor. Every time I …

Member Avatar for cliffwells
0
256
Member Avatar for ngozinyeusi

im a biginner level in Visual C++ version 6.0 "how can i Write the Program ”Minesweeper”. On field by size NxM Computer by casual image places X mines. The user will alternately assign the number of cell but computer gives him amount of mines, residing in nearby cells. If and …

Member Avatar for Lerner
0
229
Member Avatar for CBarr

Hi, I am trying to understand why this bit of code is performing the way that it is. I am a novice at C++ and missed this on my test. The teacher will not discuss anything from an exam so that leaves me to try and hash it out myself. …

Member Avatar for CBarr
0
94
Member Avatar for Majestics
Member Avatar for TobbeK

Anyone having experience in MySQL and REGEXP ? I have 1 input field, "what" Now, the value from the "what" field can contain several substrings and I like each of them to be searched. Can this be done by using REGEXP or do I need to split the "what" input …

Member Avatar for TobbeK
0
409
Member Avatar for welbyobeng

On this code `$appendPath` was created for `myFieldName['filename']` How would I add `$appendimagePath` to this code for `myFieldName['visual']` ? $result = mysql_query($sql); //print $sql; if($result){ $line = mysql_fetch_assoc($result); $myFile = $line[$myFieldName['filename']]; if(file_exists($myFile)){ pushfile($myFile, $action); } else { echo ("&retval=error 1 : file doesn't exist"." ".$_REQUEST['theID']); } } else { echo …

Member Avatar for welbyobeng
0
92
Member Avatar for dreamgirl

Hello, well am just a beginner in c++ n my question is that how to you input in a void function the ranking of a student result?? Ive implement a program where we have to input the student marks and calculate the ranking/grading n calcutale the CPA? Can any1 provide …

Member Avatar for Lerner
0
86
Member Avatar for Spawnner

Im wondering how i change the colour of my invisionfree forum. If anyone here knows how and has done it before could you please let me know how. Thanks in advance! ;)

Member Avatar for Icon
0
309
Member Avatar for toomuchfreetime

Hey Seem to be having a problem updating a JLabel updateScore() and don't seem to know why. this is effecting my keeping score. I know it something small but for life of me can't figure it out. Other JLabels have been up dated (see attachment for full programe) [code=java] import …

Member Avatar for Ezzaral
0
3K
Member Avatar for MasterDucky

Here's this program i write to uppercase proper nouns in a file. It opens three files: 1. is the file to uppercase. 2. is a list of proper nouns to uppercase. 3. is a list for proper nouns preceeding words that excludes proper nouns to be uppercased. I rechecked it …

Member Avatar for MasterDucky
0
150
Member Avatar for Time Indicator

Hi, Can someone help me with Listbox issue in Vb.NET. I have two listboxes and I want on a click function, to transfer selected items from listbox 1 to the listbox 2. How do I go about that? Thanks

Member Avatar for Jx_Man
0
93
Member Avatar for Leonerd

Hey I'm new to Python and taking a class on it. To get started here is my homework specs [quote]Sequential Letter Search 1.You will design and implement a program that will: i.Accept as input a string of letters that will be looked up in another string. ii.For each of the …

Member Avatar for woooee
0
205
Member Avatar for artisabang

I know how to generate numbers like 1-20, 1-1000 etc... but Im trying to figure out how to generate random letters from A-Z? any help please?

Member Avatar for WaltP
0
10K
Member Avatar for serkan sendur

Right click on your solution, select add new project. Expand other project types from the pop up window. Click Setup and Deployment tab, click Setup project, click ok after naming the project. It will start with opening file system window. Right click on application folder and select add > project …

Member Avatar for happygeek
0
704
Member Avatar for madhusamala

i am getting a problem in updating my database. actually i am accessing two colums from my table and adding these two numbers , and the result i want to insert in the tables 3rd column The statement i am using to access two columns String str="select * from emp" …

Member Avatar for jwenting
0
124
Member Avatar for skatamatic

I'm having some problems dynamically changing the size of stucts. I know there must be a way to do it...but I guess it must be a bit different than with standard variables. I'll put up some code, maybe I'm just being dumb ;) [code=c++] struct SScore { char m_szFirstName[15]; char …

Member Avatar for skatamatic
0
115
Member Avatar for bwjones
Member Avatar for WaltP
0
102
Member Avatar for cmoney12051

I suck at C++! like really badly, i just cant grasp it, and now i have to write a program for it that is suppose to input some values from a text file that would create like a gradebook thing. im also supposta use a void function, calculatedAverage to determine …

Member Avatar for cmoney12051
0
111
Member Avatar for jeffige

I was browsing around the web looking for C++ tutorials and I found The Game Institute. I have been thinking about taking their course- C++ Programming for Game Developers - Module I - Introduction to C++ Programming Basics. Has anyone heard any info about this course?

Member Avatar for lAmoebal
0
121
Member Avatar for serkan sendur

I have searched for a tab menu script for a long time but none of them was flexible enough,then i created one for me. The algorithm is nice so the script is not too long although being flexible. your tab menu is in an html table row as follows : …

0
64
Member Avatar for serkan sendur

In Turkey we use "." as thousand seperator and "," as decimal seperator. If you are working with currencies in sqlserver, and if the money columns is of type "money" then the problem occurs beause of the seperator issue since in its default mode sql server accepts "," as thousand …

0
61
Member Avatar for serkan sendur

Menu is about three things : 1) Position 2) Show-hide 3) Content the Positining function is this : function elementPosition(obj) { var curleft = 0, curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft; curtop = obj.offsetTop; while (obj = obj.offsetParent) { curleft += obj.offsetLeft; curtop += obj.offsetTop; } } …

0
70
Member Avatar for Asad__

hi, am brand new to VB. i have the same problem. i want to open a folder, say; C:\apache on clicking a command button on VB GUI. i have something like this: Private Sub Command1_Click() ShellExecute hWnd, "open", "C:\apache", _ vbNullString, vbNullString, SW_SHOWNORMAL End Sub but it gives compilation error. …

Member Avatar for Jx_Man
0
172
Member Avatar for asadalim1

Greetings all, I have multiple list options linked, like Country, city, town, when e.g france is selected it gives all the cities in france in the following option list. and when say paris is selected it gives you all the towns in paris and third category. I have found an …

Member Avatar for asadalim1
0
93
Member Avatar for serkan sendur

When you assign a source to an image via javascript, it will take sometime to load the image. To get around this problem you can preload the images creating virtual images via javascript as follows : if(document.images) { // create a virtual image var img1 = new Image(); // preload …

0
81
Member Avatar for serkan sendur

How to insert big html markup with white spaces(i.e. line breaks) and single and double quotation marks to sql server : To insert that big html markup to ms sql server, i tried to copy the markup and paste it to the sql server table cell first. It didnt work, …

0
63
Member Avatar for serkan sendur

private DataTable CategoryNames(DataTable myTable) { DataTable dt = new DataTable(); dt.Columns.Add("ColumnName"); foreach (DataRow row in myTable.Rows) { string s = row["ColumnName"].ToString(); DataRow[] drx = dt.Select("ColumnName= '" + s + "'"); if (drx.Length == 0) { dt.Rows.Add(new object[] { s }); } } return dt; }

0
64
Member Avatar for matt999tye

I am trying to write a program using direct addressing and pointers on the number and create a 32 bit variable from 10136654 All operations will be done in 16 bit registers like ax, bx, etc. But how is this possible if it must go in 16 bit from 32 …

Member Avatar for matt999tye
0
118
Member Avatar for serkan sendur

Create Ajax Enabled WebSite. Set EnablePageMethods property of the ScriptManager to true : <asp: ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" /> In the CodeBehind of the page, register System.Web.Services namespace. Create a Method as follows : [WebMethod] public static void DoSome() { } the method must be static and tagged as WebMethod. …

0
163
Member Avatar for serkan sendur

protected void gridview1_RowDataBound(object sender, GridViewRowEventArgs e) { if(e.Row.RowType == DataControlRowType.DataRow) { LinkButton db = (LinkButton)e.Row.Cells[0].Controls[0]; db.OnClientClick = "return confirm('Are you certain you want to delete the item?');" } }

0
45
Member Avatar for serkan sendur

I created 5 .aspx pages with Response.Write(DateTime.Now.ToString()); in the Page_Load event handler, and with <%@ OutputCache Duration="300" Location="Any" VaryByParam="none" %> added after the @ page directive with different versions of location. When i refreshed the page, client and downstream locationed ones refreshed the time as well, this proves that output …

0
55
Member Avatar for serkan sendur

I havent tried the EnableSortingAndPagingCallbacks property of the GridView before. Appearantly it doesnt do anything different than the updatepanel. It only reduces the mark up used to create the updatepanel, in other words, it encapsulates the functionality.

0
54
Member Avatar for serkan sendur

Markup : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Server Info</title> </head> <body> <form id="form1" runat="server"> <div> <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Caption="Environment Variables"> <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#EFF3FB" /> <EditRowStyle BackColor="#2461BF" /> <SelectedRowStyle …

0
68
Member Avatar for serkan sendur

Modify the web.config as follows : <configuration> <system.web> <authentication mode="Forms" /> </system.web> <location path="myRestrictedPage.aspx"> <system.web> <authorization> <deny users="?"/> <allow users="*" /> </authorization> </system.web> </location> </configuration>

0
95
Member Avatar for serkan sendur

Create a Web form : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkerProcessInfo.aspx.cs" Inherits="WorkerProcessInfo" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>WorkerProcessInfo</title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager runat="server" ID="scrpt"></asp:ScriptManager> <asp:UpdateProgress runat="server" ID="uptPrg" AssociatedUpdatePanelID="upt"> <ProgressTemplate> Loading... </ProgressTemplate> </asp:UpdateProgress> <asp:UpdatePanel runat="server" ID="upt"> <ContentTemplate> <asp:GridView AutoGenerateColumns="false" ID="GridView1" …

0
70
Member Avatar for Jennifer84

This code should be complete but I cant get it what the problem is. It is a very strange thing that happening. I might need a professional eye to see if the problem could be found :) The problem is this: The mainthing is that I am using a for …

Member Avatar for Jennifer84
0
120
Member Avatar for serkan sendur

In c# there is a built-in split method with which you can create a substring array seperated by one character from a string as follows : // string seperated by colons ';' string info = "mark;smith;123 csharp drive;toronto;canada"; string[] arInfo = new string[4]; // define which character is seperating fields …

0
264
Member Avatar for serkan sendur

When working with reference types, sometimes you want to add some items to one list which has been assigned another list by reference. When you add new items to your new list, the previous list also gets added the new items since they refer to the same object collection in …

0
58
Member Avatar for serkan sendur

in the Page_Load event of the content pages remove the attached eventHandler if there is any, register new eventHandler to the specified event of the controls. in the content page : protected void Page_Load(object sender, EventArgs e) { WebControlType myControl = (WebControlType) Master.FindControl("WebControlID"); // Removes the Handler myControl.SpecifiedEvent -= theDefaultEventHandler; …

0
49
Member Avatar for serkan sendur

I have an updatepanel control in the middle of a page, and i have a link at the top of the same page. I refresh the updatepanel by clicking the link ;however, i want the updatepanel to scroll intoview as well. My javascript scrollintoview method didnt work because updatepanel tries …

0
69
Member Avatar for serkan sendur

When you use datalist setting its repeatColumn property to a constant number, its height depends on its datasource. Sometimes we want to display 10 item in one column and start a new column next to it. For these occasions i created a function as follows : // in my case …

0
67
Member Avatar for serkan sendur

For small applications it is proper to use AccessDataSource object in order to access the database directly from asp.net page. When i first used it for inserting data with formview, it generated the following error : "You tried to assign the Null value to a variable that is not a …

0
94
Member Avatar for waterfall

Im using VS 2005 for web application.Im using message boxes but they are not working.i dont know what's the problem with my code. [CODE] if (drff.Read()) { Button_Assign.Attributes.Add("onclick", "javscript:alert('Data saved successfully.')"); } /*else { //Button_Assign.Attributes.Add("onclick", "javscript:alert('Data not saved.')"); } [/CODE] my data is saved successfully but im not getting the …

Member Avatar for plazmo
0
150

The End.