199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jayyzhao

Hi Guys, I have a problem which in java i have a method called turn() is there a way to count the amount of times it gets called upon, ultimately counting the amount of turns?

Member Avatar for hszforu
0
432
Member Avatar for vuyiswamb

Good Day All I have a File Format Defined like this [QUOTE]9.0 4 1 SQLCHAR 0 100 "," 0 ExtraField "" 2 SQLCHAR 0 100 "," 1 Descr SQL_Latin1_General_CP1_CI_AS 3 SQLCHAR 0 100 "," 2 ABREV SQL_Latin1_General_CP1_CI_AS [/QUOTE] and i use it like this [CODE]BULK INSERT dbo.TBL_CMPS FROM 'C:\\UNISA_IMPORT\\Final_Import\\Campuses.csv' WITH …

Member Avatar for DCS09
0
352
Member Avatar for Cap'nKirk

Hi, I am working on a small application that creates an RSS feed from raw XML data. While the application itself works as it should, I am trying to add images to each item in the feed, as for instance a Flickr feed. The problem I am getting is that …

Member Avatar for Cap'nKirk
0
144
Member Avatar for Shizuo

for some reason my code is resulting to syntax error INSERT INTO and its pointing to executenonquery line [code] try { OleDbCommand cmd = new OleDbCommand(String.Concat("INSERT INTO CHILDREN2 WHERE (Emp_ID , Child_Name, Age ) VALUES ('", Convert.ToInt32(CaptionText.ToString()), "','", txtName.Text, "','", txtAge, ")"), clsData.con); clsData.con.Close(); clsData.con.Open(); cmd.ExecuteNonQuery(); cmd.Dispose(); clsData.con.Close(); } catch …

Member Avatar for arunkumars
0
93
Member Avatar for chezkaty

Hi can you pls help me how this program containing a function that accepts a 5-digit numbers & returns the digit in reverse. like: Enter 5-digit number: 13569 Reversed: 96531 thankyou ;)

Member Avatar for Narue
0
159
Member Avatar for codepenman

Hi Folks, I'm working on a c# windows form application, that builds code on the fly and makes a new exe progamme with ICodeCompiler. My problem is that; i can bind a string variable into source code to build as below; [I].. ..[/I] [I]sourcecode + =" string myvar='hello world'; ";[/I] …

Member Avatar for codepenman
0
88
Member Avatar for hszforu

i have two classes:parentbox and chiildbox [CODE]class parentbox { int width; int height; int length; }[/CODE] [CODE]class chiildbox { public static void main(String args[]) { parentbox babybox1= new parentbox(); parentbox babybox2=babybox1; babybox1.height=10; babybox1.length=19; babybox1.width=2; int vol; System.out.println("the vol of babybox1 is"+(babybox1.height*babybox1.length*babybox1.width)); //parentbox babybox2=babybox1; System.out.println("Now babybox2 contains:"); System.out.println("babybox2.height=",+babybox2.height); System.out.println("babybox2.length=",+babybox2.length); System.out.println("babybox2.width=",+babybox2.width); } …

Member Avatar for hszforu
0
259
Member Avatar for newmaster

Does anyone knows how to group dynamic table rows What I want is: when user chooses same name second, third... times It must add quantity value instead of adding new row here is my code: [CODE] <html> <head> <script language="javascript"> // JavaScript Document function updateSum(formID, nameID, quantityID, priceID) { var …

Member Avatar for AleMonteiro
0
279
Member Avatar for Zssffssz

Sorry about all the posts; found time and have found time to do programing. Ok I want a usual console application to make a Win GUI window saying thanks at the end of the console app how would I do this eg: [CODE]#include whatever Using namespase std; // what does …

Member Avatar for Ancient Dragon
0
151
Member Avatar for jonkim9483

hey guys, new to daniweb here. This is my first assignment in my first C class at school. I'm having some trouble getting the program to work, was wondering if you folks could give me some tips. I believe I have most of the code down, I think my issue …

Member Avatar for D.M.
0
373
Member Avatar for chiiqui

I've already read the stickied about "STarting java" but the thing is I am not starting java, soo my question is, what's the best book to learn core java and Java EE? and what's their difference and it would be good if you will site the books you've read regarding …

Member Avatar for hszforu
0
358
Member Avatar for himanjim

I wanna create subdomains dynamically than manually I've got this script but can't make it work...I've got my website hosted on a server..Can anybody tell me that is it [B]possible[/B] to achieve that... [CODE]<?php ############################################################### # cPanel Subdomains Creator 1.1 ############################################################### # Visit [url]http://www.zubrag.com/scripts/[/url] for updates ############################################################### # # Can …

Member Avatar for stewart2011
0
264
Member Avatar for kiko11

[CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package schedule; /** * * @author Kix */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.sql.*; public class Fourth extends JFrame { static JLabel lblFaccode,lblFaculty,lblSpace,lblSpace1; static JButton btnExit; static JTable tblOne; …

Member Avatar for Taywin
0
172
Member Avatar for vaironl

Hello forum vaironl here, I'm having a little bit of trouble with a school assignment which is storing up to 10 names and printing them out in the command box or just printing out the names if the user presses -1. For some reason my loop doesn't wait for the …

Member Avatar for stevanity
0
2K
Member Avatar for Kobrakai

Hey all I've got a form and several checkboxes. Each checkbox (if checked) runs a batch file which in turn installs a piece of software. The 2 is question are Acrobat Pro and Acrobat Standard - obviously only one can be installed. Therefore when one is checked by a user, …

Member Avatar for Kobrakai
0
184
Member Avatar for jollywood

I am fairly new in this world and I still have a lot to learn. I am making a dynamic page where I have to load 7 images for the database and I'm not even getting if anyone can help me. thanks <?php require_once('../Connections/ligacao.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function …

Member Avatar for vibhaJ
0
174
Member Avatar for TheHaxx0r1215

Alright, I have a members area, area.php, and I used mysql to find the userlevel and display content depending on the userlevel, 1 for user, 2 for admin. I made it, but it displays both the user and admin for 1, and 2. [CODE]<?php // Members Area // session_start(); $usernamee …

Member Avatar for kanchana Mala
0
251
Member Avatar for grozadani2007

Hello, I have a code that only add an image in my database and I want to add more, but only one form. Can anyone give me some ideas how to do this? thanks

Member Avatar for sl_bart
0
4K
Member Avatar for babbu

Hi, I have a JSF application. There is page parent.jsp which opens a popup using javascript (window.open() function) I want the data on the parent.jsp page to be available on the popup window as well. Any idea how this can be done. The application also uses JSF Portlets.

Member Avatar for babbu
0
96
Member Avatar for babbu

Hi I want to pass the data from one JSF page to another without using query string. Any idea how this can be done??

Member Avatar for babbu
0
248
Member Avatar for babbu

Hi I am looking to set the value of <portlet:param> tag using java script. Here is my existing code [CODE] <form name="frmname" method="post" enctype="multipart/form-data" action="<portlet:actionURL><portlet:param name="page" value="mainview"/></portlet:actionURL>"> [/CODE] And I am setting the value of the portlet:param tag by calling the following javascript on the page load event. [CODE] function …

Member Avatar for babbu
0
515
Member Avatar for davy_yg

I have the following codes: [CODE] <?php // a) function fnTripple($a) { $a = $a * $a; return 3; } echo fnTripple(4); // b) $a = 5; $b = 5; // c) $b = $b + $a; // d) $d = $d + $b; $e = $e + $b; // …

Member Avatar for karthik_ppts
0
167
Member Avatar for Pgmer

Hi All, I have webservice which i having webmethod which returns boolean value. Its retruning the correct output value only when the connection is pointing to localhost. Can any one please guide me? Thanks

0
90
Member Avatar for dyahalifda

Hai all,, Currently I'm writing code in ASP.NET using VB language. I got an issue regarding dropdownlist. In my form, I have a treeview and a dropdownlist which are populated with data from database. When I click a node in treeview, the dropdownlist should be populated with values based on …

Member Avatar for dyahalifda
0
165
Member Avatar for punitdam

I am getting error SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path when I am trying to run Applet. Do any one have any idea.

Member Avatar for punitdam
0
2K
Member Avatar for ChunkyGerbil

Hey guys, I need help with my homework. I'm super new to coding on my own as you can see and I need to create a character counter using an array, in just this one method. [CODE] public int[] letterCounts(String s) { int count = 0; int[] array= new int …

Member Avatar for teo236
0
132
Member Avatar for flaviu_xdv

Hello everybody! I have encountered a problem and I didn't manage to find any soultions yet. Let me simplify things a bit. I have 2 forms, the first contains an ASP ListBox with multi select mode enabled. I submit the form and in the other form I use just for …

Member Avatar for flaviu_xdv
0
219
Member Avatar for ozgamu

What happens is that when i run my program from netbeans it works fine and it shows all the images but when i run the .jar file it doesn't show any of them...the images are declared below the "//Imagenes automata" comment by the way, im new in Java so please …

Member Avatar for peter_budo
0
156
Member Avatar for khsoccer

I am having trouble with making my program read in binary and convert it into an integer so that I can do arithmetic on it, and then output it back out as binary. Here is my code. The first part of it works, and I can read in the 2 …

Member Avatar for D33wakar
0
257
Member Avatar for shankarc2

I am looking for sample code for vb.net Dynamic Dashboard applications , so please kindly help me , i want the code in vb.net which will be my front end and sql will be my back end for database , it will be great if dashboard reflect sell/purchase mechanism

Member Avatar for shankarc2
0
204
Member Avatar for Zssffssz

How would I togle casp lock in a c++ program without the key; I want my keybord to look haunted(the casp lock button has a light on it : )

Member Avatar for sundip
0
99
Member Avatar for NexG

This is my attempt at the Euclid Algorithm. I would like it if someone could give me some pointers on how to fix this so that it would work. It compiles fine. [CODE]import java.util.Scanner; public class Euclid{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); System.out.print("Enter the first …

Member Avatar for NexG
0
118
Member Avatar for fsefsef23

We just started discussing stacks and queues in my class, and our teacher left us with some questions to answer. I got all of it done except for the last question, which I honestly just can't understand, and am wondering if there is something about stacks that I'm missing. Here …

Member Avatar for mike_2000_17
0
223
Member Avatar for biojet

Hi, I made the perl script and I print out with Txt file. For EX : [CODE]Open (OUTPUT,">data.txt"));[/CODE] out put [CODE]data.txt[/CODE] But I hope at the day that I run the script, the day will be labeled with the name file. Like the name below: [CODE]20110919data.txt[/CODE] Could you please show …

Member Avatar for biojet
0
134
Member Avatar for sirlink99

I am just learning how to use sockets, and I have managed to get my server to send a message to my socket, but when I try to send a message from my socket to my server I get an error. Here are my codes Server: [CODE] package BasicNIO; import …

Member Avatar for NormR1
0
315
Member Avatar for Jared1337

I've messed with this program for awhile, i can't figure out how to make any of the other triangular shapes beyond the first one i have. Also there's a diamond that i am supposed to make, and a triangle with spaces in the problem. Can anyone help me re-construct my …

Member Avatar for Jared1337
0
150
Member Avatar for calebcook

Hi. I'm looking for a script (in either JavaScript, PHP or both) where you enter the amount of servings you want for a recipe, and it'll calculate the recipe. I can't find a script anywhere! Can anyone help me? To see an example, go to [URL="http://tastykitchen.com/recipes/breads/plain-bagels/"]http://tastykitchen.com/recipes/breads/plain-bagels/[/URL] Thanks!

Member Avatar for calebcook
0
1K
Member Avatar for calebcook

Hi. I'm trying to multiply fractions. How can I take '1 1/2' and multiply it to get 3? (is there some special format like '1-1/2' that I need to use to multiply it?) Thanks

Member Avatar for calebcook
0
317
Member Avatar for Labdabeta

Quick question (though I still want to get my long OpenGL question fixed) is there a faster way to Xor the bits of an integer than this: [CODE](MyInt&0x1)^((MyInt&0x2)>>1)^((MyInt&0x4)>>2)//etcetera[/CODE] Just to clarify by faster I mean faster to execute, not to type as this operation will have to be done many …

Member Avatar for murnesty
0
100
Member Avatar for kiwikarma

Hello, I'm trying to display a table in PHP that uses multiple MySQL tables with some repeated field names. [U]Master table field names:[/U] Name, Student Major, Course Major, Course #, Credits, Course Name This is what I have so far...but the variables in the loop are not working and I'm …

Member Avatar for diafol
0
141
Member Avatar for Prisms

Ok guys I'm almost done with my GPA program but I hit a snag. everything works fine but when I insert a letter grade the program doesn't read what number it corresponds to and sets double number to zero. Can some please let me know what I'm doing wrong. [CODE]import …

Member Avatar for Prisms
0
5K
Member Avatar for Hand

Hello, I am new to web development. I have a page file1.jsp with a form, the submitted data is handled in file2.jsp, and I want to show the answer in the same page, file1.jsp. After the data be handled in file2.jsp, I want to reload file1.jsp and show the answer. …

Member Avatar for Hand
0
707
Member Avatar for jigglymig

need some help with the friend function that overloads the << operator heres my code thus far.... [CODE]#ifndef PRODUCT #define PRODUCT #include <iostream> using namespace std; class CProduct { private: int productID; // 5-digit product ID number int manufactureID; // 4-digit manufacturer's ID double price; // wholesale price double markup; …

Member Avatar for jigglymig
0
239
Member Avatar for Whilliam

So guys, I'm very new to Java and I have just developed my algorithm of opening forms. However, I've also recently read about singleton pattern. I don't know how Java works internally but I want to ask an expert's advice. Is this implementation efficient? Compare it with singleton. How good …

Member Avatar for Whilliam
0
114
Member Avatar for emilo35

Hi all! I'm playing around a bit with my old Visual Basic 6.0. I'm working with images, and this rather strange error came up: First I isolate a small piece of a larger picture to a smaller picturebox using PaintPicture: [ICODE]picBoxSprite.PaintPicture picBoxResource.Picture, 0, 0, 64, 64, (X * 64), (Y …

Member Avatar for BitBlt
0
1K
Member Avatar for stranger_on_way

Hi guys, Please help me out. I have a webpage in which there are multiple images. All i want is that when a user clicks on any image it gets displayed on the bottom left corner of the page and when second image is clicked it is displayed adjacent to …

Member Avatar for AleMonteiro
0
256
Member Avatar for RideFire

Here is my question that I can't manage to google and solve. I wrote a simple C++ program that adds two numbers. However, how do I call an assembly code to do this addition. It will be easier to show what I have so here it is. Here is my …

Member Avatar for raptr_dflo
0
236
Member Avatar for QuickBooksDev

We have just converted a large VB6 desktop app to VB.NET 2008. First via the VB 2005 (open project), then days of fixing errors, etc. Then opened the VB 2005 in VB 2008 so now it is a 2008 solution. The more we try to test the worse it gets. …

Member Avatar for lolafuertes
0
860
Member Avatar for Zssffssz

I herd that some C++ compilers can use asembly languige in there programs along side C++, How would I do This? And is there any way to use a compiler as an assembler? <<two questions.

Member Avatar for gerard4143
0
181
Member Avatar for srinidelite

[CODE] [TEX][B][U]form1[/U][/B][/TEX] Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim cmd As New ADODB.Command Dim adrs As New ADODB.Recordset Private Sub Command1_Click() cmd.CommandText = "insert into table1 values('" & Text1.Text & "','" & Text2.Text & "','" & Text3.Text & "','" & Text4.Text & "','" & Combo1.Text & …

Member Avatar for adam_k
0
449

The End.