199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for di.miller

Hi, I am using VB 2008 Express to connect to an Access 2007 database. I have a combo box called SelectYearMonth that is populated by the database. When I used the Access report VBA, I used the AfterUpdate() event to calculate a sum. I need to know how to do …

Member Avatar for di.miller
0
793
Member Avatar for sadsdw

Hi friends, I'm newer in C++ and I'm trying write a code using ifstream, vector and substr. A) I have 2 problems: A.1) When I read files with small number of lines OK, but if I increase the number of lines, PROBLEM. As example: file1.txt (Work well with 9 lines, …

Member Avatar for daviddoria
0
199
Member Avatar for whiteyoh

Hi All, Im trying to count the number of instances of a value in an array and put that value into a variable but im a little stuck. My example below prints to screen how many of each, but i want it broken down to a specific variable of that …

Member Avatar for mschroeder
0
113
Member Avatar for GURU1349

I'm a beginner in C++. I'm not studying it so I don't have a teacher and I don't have a book, a guide. The Internet is my only guide. Well here's my program: [CODE]#include <iostream> #include <math.h> using namespace std; int main () { int q; float x,y; Baslangic: cout …

Member Avatar for GURU1349
0
127
Member Avatar for shenbagam

[CODE]<?php $con = mysql_connect("localhost","root","" ); mysql_select_db("test",$con); $sql="select image from image"; $res=mysql_query($sql) or die(mysql_error()); $i=1; while($i < mysql_num_rows($res)) { $image_id[$i] = mysql_result($res, $i); echo "<img src=\"".$image_id[$i]."\">"; $i++; } ?> [/CODE] I'm using this code to display the image from mysql but images are shown like this M¢—‡¤6n幆J1³ŒªÌF·æFLùp1 `‘ã:ÃDVNÒ–¢QSgWñg€?´‘íx3²ûEùÝ ô.l%·ËìÈŒÿAzH­'óÀËË€XƒÍ«L²GçÚ›9ást¸°äŒëŸ]˜¦21ŒÖ|¸E^®ÏJOXX&æàߣéü6bêæ¬Öò7aúQ¡·÷9;Ó-ˆ )ôdx¹cüÖlÒ'j( q1ÌnéW4Ó÷dÇå©uF …

Member Avatar for hielo
0
114
Member Avatar for vishalkhialani

Hi, Below is a working code. [CODE] 1. if($('input[name="test"]').is(":checked")) 2. { 3. // my other code 4. } [/CODE] I want to remove "test" and put a variable there instead I tried this way but it does not seem to work. I am not sure where I am going wrong. …

Member Avatar for hielo
0
92
Member Avatar for DaveTran

I have a simple class that creates unique ID numbers: [CODE] public static class ID { private static int iD = 0; public static int GetNextID() { return iD++; } } [/CODE] If I want each instance of an abstract class to automatically get a new non changeable ID when …

Member Avatar for Mitja Bonca
0
87
Member Avatar for UsSy

Hello there folks, I'm trying to make myself more C# literate. I've decided to branch myself towards the GUI subject for the moment and get myself more familiar with dialog boxes and what not. So for the moment, I've created a form which has a RichTextBox. And I've added a …

Member Avatar for Mitja Bonca
0
157
Member Avatar for ibeginphp

Hi Guys, I am trying to call the Javascript function declared at the top in my php area. However its not working. Can anyone tell me the reason for it. Everything else is working except for this part. Please help me. [code] <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> …

Member Avatar for nonshatter
0
381
Member Avatar for Kiseki

Hi guys, i have a String time 23:00, how do i subtract it against a String today's time and get the remaining minutes? do i parse the String into a date type? any ideas is appreciated, thanks. [CODE] public String getTime() { SimpleDateFormat sdf = new SimpleDateFormat("kk:mm"); Date s = …

Member Avatar for Kiseki
0
268
Member Avatar for Solmyr

I need to convert text to image, using specified fonts, size, etc. Looks like everything is ok when using standard DrawString method but, when I'm trying to do it under Windows 7 I have my picture blurred this is a screenshot from Windows XP / Windows 2008 server [url]http://testmyblog.ho.ua/pictures/xp.png[/url] and …

Member Avatar for Mbt925
0
101
Member Avatar for Shuel

Hi I cant understand why I get the following error: "Notice: Undefined index: note in C:\wamp\www\addressbook\guesbook.php on line 20" The code I have is below: [CODE]<html><head><title>My Guestbook</title></head> <body> <h1>Welcome to my Guestbook</h1> <h2>Please write me a little note below</h2> <?php $me = $_SERVER['PHP_SELF']; ?> <form action="<?php echo $me; ?>" method="POST"> …

Member Avatar for Shuel
0
1K
Member Avatar for madsy

Hi everyone... Well i do have a mysql query in one php page(php_1) & I want to submit the variables to the query in different php page(php_2) via form action but how am I supposed to do it without redirecting to php_1.. All I need is to post the data …

Member Avatar for diafol
0
819
Member Avatar for _neo_

Hi guys. I've just installed libnetty-java package on my ubuntu $ sudo apt-get install libnetty-java and then try compile this code [CODE] import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.ExceptionEvent; import org.jboss.netty.channel.MessageEvent; import org.jboss.netty.channel.SimpleChannelUpstreamHandler; ... [/CODE] It throws this error: javac QuoteOfTheMomentClientHandler.java QuoteOfTheMomentClientHandler.java:1: package org.jboss.netty.channel does not exist import org.jboss.netty.channel.ChannelHandlerContext; ^ QuoteOfTheMomentClientHandler.java:2: package org.jboss.netty.channel …

Member Avatar for _neo_
0
1K
Member Avatar for veledrom

Hi guys, I need your help with PHP+AJAX example. This is the scenario: 1. I enter my name into textbox and hit submit button in page index.php. 2. Data is POSTed to save.php to insert my name into mysql database. 3. With help of mysql_insert_id() function, save.php sends ID back …

Member Avatar for diafol
0
116
Member Avatar for vishalkhialani

Hi Guys, I am looking to query a db having multiple brands of cars then from those results I want to further filter it based on the type of oil they use. I have written the below but it does not work and I am not sure how I can …

Member Avatar for pritaeas
0
128
Member Avatar for Sodabread

I'm working on an application that has a slew of database connections throughout. The application is being developed on a system which is 100% disconnected from the server on which it will run. Every time I open a form object or attempt to compile, I have to wait n seconds …

Member Avatar for AndreRet
0
132
Member Avatar for Hey11

hello , i used an array using aggregration in OOP in order to insert multiple datatypes in the array and i wanted to convert it into dynamic array , so as to edit the entries and here is the code of the 2 classes and the main function [CODE]#include<iostream> #include<string> …

Member Avatar for daviddoria
0
224
Member Avatar for ajst

Hi, I'm currently trying to create a program that will log into the web page given to it if supplied with the user name and password. but the problem im having is sending the POST request to the website and then retreiveing the URL it sends back to load in …

Member Avatar for ajst
0
320
Member Avatar for JPeacock

Hi, I've been using VB.NET for quite a while now, and would definitely consider myself beyond a beginner. However, I have never attempted to use Data binding before, and have read [I]lots[/I] of stuff online about it, but I [I]still[/I] don't understand quite how it works. I have a form …

Member Avatar for JPeacock
0
164
Member Avatar for cavern

hello everyone, i need a tips about "search coding" im using adodc connection: [CODE] Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\sistempengurusanrumahsewa.mdb;Persist Security Info=False" Adodc1.RecordSource = "Select * from Owner" Set DataGrid1.DataSource = Adodc1 [/CODE] im trying to make "search" button to search a Name in my datagrid1. can anyone …

Member Avatar for AndreRet
0
102
Member Avatar for divakar.it

Hi, I am developing a new Application and am getting the below error Error Description: When I click the record in DataGrid, then the values should be populated from DataGrid columns to respective Text boxes. However if i click in the datagrid when there is no record then there should …

Member Avatar for AndreRet
0
262
Member Avatar for bhagawatshinde

Hi I am displayed a HTML file in web browser. Now i want to edit the matter which are displayed in web browser. e.g. font style ,color etc. I am used vb.net 2008 Can anybody help me!

Member Avatar for bhagawatshinde
0
167
Member Avatar for tech9x

i want my data can be used over every function, so i need a class to capture them, am i correct?? here is my outline, im not sure if i use it correctly, please help!! [code=c++] class CLASS { private: int * (something) string * (something) public: void (function) () …

Member Avatar for Greywolf333
0
250
Member Avatar for NinjaLink

Hi I am trying to compile and run my prog3.c program, but I am getting the compiler errors below. I have tried to reference the information by doing #include "node0.c" etc., but no luck. Any ideas on how to fix this problem? I attached the files below that I am …

Member Avatar for Perry31
0
261
Member Avatar for dudman

[CODE]#ifndef _EMPLOYEE_H #define _EMPLOYEE_H #define _ProductionWorker_h #pragma warning(disable: 4996) #include <cstring> #include <iostream> #include <cstdlib> using namespace std; //const int SIZE = 40; // Array Size class Employee //Definition of Employee Class { private: //char employName[SIZE]; char *employName; int employNum; int hireDate; public: Employee(); //Constructor Employee(char *e) {employName = new …

Member Avatar for dudman
0
155
Member Avatar for Diamonddrake

I'm new to ASP.net I am a decent C# programmer, but I usually write windows programs, not web stuff, I did my website in plain html and recently I have started working in asp.net. I've read a few tutorials, but I'm stuck on what to search for, and how to …

Member Avatar for shelen
0
180
Member Avatar for dre-logics

I use visual baisc 2008 if i use "mouse click" or "use arrow keys " in the datagridview1 then i want that [COLOR="Red"]always the focus [/COLOR]in on the textfield => [COLOR="Green"]Number_Pieces.text[/COLOR] Is use this code : [CODE] Private Sub Datagridview1_CellMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles Datagridview1.CellMouseClick [COLOR="green"] …

Member Avatar for dre-logics
0
110
Member Avatar for tomtetlaw

I am using Windows XP 32-bit, VC++ 2008 with OpenGL and the Windows API. When I run my program, it seems to work fine, but whenever I click anywhere on the title bar of the window, the program exits. I have no idea where to start to look for the …

Member Avatar for tomtetlaw
0
160
Member Avatar for Fredszky

Im trying to make my program to either open or create a file if it does not exist, in "C://". [code] printf("Filename: "); scanf("%s",filename); FILE *fil; fil=fopen(filename,"a+");[/code] This code opens or creates a file in the same folder as the program. What i want is something like this: [code] printf("Filename: …

Member Avatar for vinitmittal2008
0
186
Member Avatar for dilbertwannaB

Q1: CommissionReport class JavaAuto is a used car dealership that pays its sales associates by sales commission. Your application will produce a sales commission report as shown in the example screen shots. Your solution will contain three classes. The MyArrays class will contain several static methods for searching, sorting and …

Member Avatar for peter_budo
0
119
Member Avatar for swathys

hi, I would like to load data from sql to datagrid. But there is a problem at highlighted place. [CODE] Sql = "Select [KioskID] As [KioskID], " _ & "[KioskLocation] As [KioskLocation], " _ & "[TransactionNo] As [TransactionNo], " _ & "[SerialNo] As [SerialNo], " _ & "[TransactionDateTime] As [TransactionDateTime], …

Member Avatar for Netcode
0
84
Member Avatar for tk-421

I need help! The Python program I need to write accepts the price of an item, the amount paid for it, and then calculates the change in the smallest number of bills/coins. I'm so lost! Can anyone help? Thanks!

Member Avatar for TrustyTony
0
13K
Member Avatar for jlivvers

Hi is there an accepted way to calculate the number of times a specific day would come round in a given timespan? For example if we have 32 as a variable that represents the number of weeks I would then need to find out how many times the first of …

Member Avatar for jlivvers
0
126
Member Avatar for balrogf

how do i transfer the contents of a string array to an int array in relation to my code below: string[] sample= { "J♦", "3♦", "4♥", "Q♦", "9♥" }; convert(sample) [CODE] void sample(string[] straight) int[] straight2 = new int[straight.Length]; for (int i = 0; i < straight.Length; i++) { if …

Member Avatar for balrogf
0
241
Member Avatar for ranu jain

[CODE]Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click Dim j As Integer Dim conn1 As New SqlConnection Dim cmd1 As SqlCommand Dim dp1 As New SqlDataAdapter Dim ds1 As New DataSet Dim str1 As String str1 = "Insert into Feedback( Title,UserName,EmailId,Feedback,) Values('" & ((txtTitle.Text).Trim).ToUpper() & " …

Member Avatar for crishjeny
0
162
Member Avatar for Sinha's

Hello Frends I am getting an error. The details are follows, ERROR: Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 36: if (rdr.Read()) Line 37: { [COLOR="Red"][B]Line 38: matured_month = Convert.ToInt32(rdr.GetString(0));[/B][/COLOR] Line 39: matured_year = Convert.ToInt32(rdr.GetString(1)); Line 40: conn.Close(); CODE: protected void Page_Load(object sender, …

Member Avatar for Sinha's
0
287
Member Avatar for new SE

Hi now, when i download the image, the path will be in this format [CODE]C:\Users\itdept\Desktop\webmaster\image\Penguins.jpg[/CODE] how can i make it save only the filename [CODE]Penguins.jpg[/CODE]? this is my code [CODE] if (FileUpload1.PostedFile != null && FileUpload1.PostedFile.FileName != "") { byte[] imageSize = new byte[FileUpload1.PostedFile.ContentLength]; HttpPostedFile uploadedImage = FileUpload1.PostedFile; uploadedImage.InputStream.Read(imageSize, 0, …

Member Avatar for crishjeny
0
160
Member Avatar for DankDuggz

I need help the word class for a hangman program here is the code i have so far: /** * File: Word.java * */ package csc212project05; import static java.lang.System.out; import java.util.ArrayList; import java.util.Scanner; public class Word { private static java.util.ArrayList<String> wordlist = null; private char[] lexeme = null; // the …

Member Avatar for Slimmy
0
143
Member Avatar for diamondsrain

Okay so I'm a total beginner and I can't figure out this thing. These are the simple instructions: [B]Add a plane (Space>>Add>>Mesh>>Plane) - (This will only work while the Mouse Cursor is positioned over the 3D View window).[/B] I'm using Blender version 2.55 on my macbook pro. I hover over …

Member Avatar for SgtMe
0
252
Member Avatar for devloper

i m new in asp.net.. asp.net CheckBoxList control does not have the CheckBoxList.CheckedItems.Count like the one in the windows Application. i am manually converting a windows app to asp.net , i need to use the functionally of that Method .. any help please

Member Avatar for crishjeny
0
1K
Member Avatar for Diamonddrake

I am kinda new to asp.net. I used asp backing flash for most of the site work i have done, but I have shied away from flash and I am having some issues understanding asp.net membership. I am currently using the web.config file to set the credentials for forms authentication. …

Member Avatar for crishjeny
0
432
Member Avatar for jv_web

Im sure this is real easy... Please forgive my limited .Net abilities... The script below genereates the correct value I need... I just want ot place the value obtained by dblTotal into a flash param... the param below is what I imagine it would look like. [code=c] <script Language="c#" runat="server"> …

Member Avatar for crishjeny
0
136
Member Avatar for Shlesh
Member Avatar for incubus9x9

I need to change this from a bubble sort to a selection sort but i don't know where to start. Also I don't understand the difference between the two sorting methods, and which one would be more efficient. Thanks [CODE] import java.io.*; import java.util.Scanner; public class phase1 { public static …

Member Avatar for group256
0
134
Member Avatar for Sinha's

Hello Frnds, I have an application developed in ASP.Net(C#) and MS SQL, its working fine and fulfilling the requirements. Now the problem is I have a [I]MS Access Database[/I] from where I have to read some data and feed it into ASP.Net form and then save it to [I]MS SQL …

Member Avatar for crishjeny
0
360
Member Avatar for ajwposh

I am new to asp.net after previously coding in classic asp. I am needed to do a loop in VB.Net but don't know how to do it. I need to loop through a data set of 3 records and then place each record in the relevant section on the image …

Member Avatar for crishjeny
0
221
Member Avatar for ligas84

image of my listview: [url]http://img26.imageshack.us/img26/4043/listview.png[/url] I want to total every row from my listview tallies total infected people and percentage ____________________________________________________________________ CityID | City | Population | Male | Female | Total | Percentage | Population, male, and female columns are user inputs total column is male+female textbox value per …

Member Avatar for crishjeny
0
665
Member Avatar for manish250

hello all i m new to shell scripting.i have seen th code substitution like a=`ls -l` and a=23 R=$(a/23/bb) first time we use ` ` and second time we use $ . can anyone tell me Why so?

Member Avatar for rch1231
0
145
Member Avatar for hirenpatel53

hello all i have allready created table and wan to add Composite primary key into that so for that i am using following statement [CODE] ALTER TABLE pqrimasterdetail ADD primary key (PQRIMasterID,Type,Year,PhysiciansID);[/CODE] but in not executed successful it gives the query could not be Executed. Multiple Primary key Defined if …

Member Avatar for hirenpatel53
0
88

The End.