199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Bagleys

Hi im really new to VB and am stuck on an IF statement, heres my code: If TextBox12.Text >= 105.01 Then TextBox16.Text = TextBox12.Text - 105.01 * 0.128 ElseIf TextBox12.Text < 105.01 Then TextBox16.Text = "Not NI Eligible" End If When i debug it the error System.InvalidCastException is displayed four …

Member Avatar for Bagleys
0
98
Member Avatar for dhrider

Hey. I'm new to php and I have been looking everywhere for info on how to take information from my sql table field and put it into a html form list.

Member Avatar for diafol
0
153
Member Avatar for Skrutten

I wonder how the random.normalvariate function works. When I do the method below, I end up with negative numbers. I don't want that. How do I prevent that? And also, i want 10 numbers, but it always turn out 9 and a "none". What is none? How can i remove …

Member Avatar for vegaseat
0
186
Member Avatar for fada4ever

include a derive class named sphere from the base circle class. the only additional class members of sphere should be s constructor and a calcval () function that returns the volume of the sphere... please kindly help me in correcting the code.. #include <iostream> #include <cmath> using namespace std; const …

Member Avatar for mrnutty
0
173
Member Avatar for Tank50

HI I wrote below coding part,but its generate the exception.Below I mention the code and error Error [COLOR="red"]Data type mismatch in criteria expression.[/COLOR] [CODE] DataSet Serach_sumbitdata=new DataSet(); OleDbConnection conn7 = this.getconnection(); conn7.Open(); string str = "Select * from Customer where SubmitDate between '" + str1 + " 12:00:00 AM'" + …

Member Avatar for Tank50
0
195
Member Avatar for Adam2k

Hi guys! I need your help with a simple program I'm trying to make. It's supposed to read values from a file, covert them (and add/multiply), sort, and then view the values to the user. The values looks like this: [code]Stockholm 650000 55.5 2100 08 123 456 Whateverstreet 123 ... …

Member Avatar for Adam2k
0
112
Member Avatar for amel036yippee

hello.. i need tips to solve the problem. The situation is like this: I have randomly generated 20 (pop) array of length = board. The output is this: [QUOTE] [B]1 3 6 4 1 4 6 6[/B] 2 0 1 1 1 3 1 3 3 6 3 4 7 …

Member Avatar for amel036yippee
0
130
Member Avatar for Neon87

Hi I have a question regarding runtime polymorphism. I have for example [CODE]derived A; base *B;[/CODE] and I do this [CODE]B=&A;[/CODE] if A goes out of scope does this mean the pointer B is a bad pointer meaning it does not point to anywhere? If so, does this mean I …

Member Avatar for Narue
0
101
Member Avatar for rehaam

Hi I need help;; Write a program to simulate a demand paging system. The program should implement the FIFO and LRU page replacement algorithms presented in Chapter 10 of the textbook. Your program input should include: The name of the page replacement algorithm. Information about the number of physical page …

Member Avatar for gerard4143
0
2K
Member Avatar for Lolalola

Hi, Why not uploaded the data into db? Do not show any error. [CODE] string City = "Berlin"; string MyConString = "SERVER=localhost;" + "DATABASE=test;" + "UID=root;" + "PASSWORD=;"; MySqlConnection connection = new MySqlConnection(MyConString); MySqlCommand command = connection.CreateCommand(); command.CommandText = "insert into city(city) VALUES (@City)"; command.Parameters.Add(new MySqlParameter("@City", MySqlDbType.VarChar, 40)).Value = City; …

Member Avatar for DdoubleD
0
129
Member Avatar for me30

how can write a pascal program that do minus,sum and muliply tow number with 50 digit??? please answer or mail to me.

Member Avatar for FlamingClaw
0
308
Member Avatar for winecoding

How many constructor (including copy constructor) and destructors will be called for test1 and test2? [CODE]#include <iostream> using namespace std; class Base{ public: Base(){cout << "Base()" << endl;} Base(const Base&){cout << "Base(const Base&)" << endl;} ~Base(){cout << "~Base()" << endl;} }; Base func(Base b){return b;} void test(){ Base a; func(a); …

Member Avatar for Lawand
0
85
Member Avatar for XMarshall

Hi, I have declared a Multi dimensional Array in C# like this: [CODE]private System.Windows.Forms.Button[,] ButtonArray = null;[/CODE] Now after inserting into the array, I would like to re-initialize and empty the "ButtonArray"? Please let me know the possible ways to do that Thanks in advance for helping out a newbie. …

Member Avatar for DdoubleD
0
262
Member Avatar for Stefano Mtangoo

I'm curious what you Developer uses: 1. What is your favorite IDE 2. What is your favorite GUI library 3. What is library that you often use? 4. Anything related?

Member Avatar for Lawand
0
139
Member Avatar for thandarucsy

Hello, I want to know how to write java code to retrieve content and position of an xml element using sax parser.

Member Avatar for servicecycle09
0
130
Member Avatar for ahmedshayan

This is the Program I am try create ! Create a class CoffeeCup with a double instance variable temperature. Provide a parameterized constructor, an accessor/getter, and a mutator/setter. It may be noted that 75 degree Celsius is considered best temperature for coffee to be served for drinking. Create another class …

Member Avatar for ahmedshayan
0
337
Member Avatar for styles_p

Hello I'm a newbie of nhibernate And i would like to use the NHibernate Mapping here is my mapping file <?xml version="1.0" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="HibernateCollaborator.Core" namespace="HibernateCollaborator.Core" default-access="property" default-cascade="none" default-lazy="false" auto-import="true" > <class name="User" table="Users" lazy="false"> <id name="ID" column="ID" type="Int32" unsaved-value="0"> <generator class="native" /> </id> <property name="ForeName" type="string" length="30" not-null="true"> …

Member Avatar for styles_p
0
96
Member Avatar for Graxxis

hello, long time lurker first time poster! currently writing a program that generates 100 random integer values in the range of 1 - 50, then displays how many of those numbers are in the range 1-10, 11-20 etc etc. i generated the numbers with no problem, but im not too …

Member Avatar for hondros
0
100
Member Avatar for edgar5

I am a developer on the open source Audacity team and am trying to add some functionality. Currently if you drag the icon of a supported type (fi song.wav) onto an open Audacity project it loads the file. However if you drag song.lnk (like an XP shortcut but different--looks like …

Member Avatar for mitrmkar
0
219
Member Avatar for AZSooner

I am creating a Video class, then creating objects to place into an array. Then I want to print the contents of the array: [CODE=java] public class Video { String videoTitle; int videoRating; public Video (String pVideoTitle, int pVideoRating){ videoTitle = pVideoTitle; videoRating = pVideoRating; } } [/CODE] [CODE=java] public …

Member Avatar for Mikeyp926
0
6K
Member Avatar for chris99

[CODE]global Num1 from Tkinter import * Num1 = "" def buttonNPush(n): global Num1 Num1 = Num1+n print Num1 def clearScr(): global Num1 Num1 = "" root = Tk() textbox = Entry(root) textbox.pack(side=TOP) #Create Frame with buttons numbered 0-9 frameButtons = Frame(root) frameButtons.pack(side=LEFT) button1 = Button(frameButtons, text="1", command=buttonNPush("1")) button1.grid(row=0, column=0) button2 …

Member Avatar for vegaseat
0
210
Member Avatar for JRM

Hello, I'm a neophyte to Javascript, but I need it to dynamically add lines to a form. I was able to cobble together this inelegant looking code below. It adds the row when called, but there are more attributes needed for this to be correct for the application. 1) need …

Member Avatar for JRM
0
131
Member Avatar for pkrdimos

Hi. I am new both in daniweb and as a web programmer (university student) and I'd really like some help, if possible, with a shopping cart I've been developing for a lesson/project of mine. The error I get is: Parse error: syntax error, unexpected '{' in C:\Apache_PHP_MySQL\xampp\htdocs\site\basket.php on line 135. …

Member Avatar for pkrdimos
0
151
Member Avatar for V5dave

Am new to C++ and don't know if I'm doing something fundementally wrong. Have a form with a textbox and buttons. When I click on button, I am running a function in my .cpp file. However, in this function I need to update the text box in the form. Have …

Member Avatar for gpushee
0
594
Member Avatar for walter clark

What I want to do must be easy because I can't find it on the web. I have existing C code with char* strings all over the place. I'd like to get those strings to the Form1.h file so I can use them there. All I want is... String^ newText; …

Member Avatar for walter clark
0
99
Member Avatar for onaclov2000

I'm really not sure if this is the place for this, but I guess I don't see any OpenID or SVN forums...LOL I'm having a heck of a time finding this stuff, but basically what I'm looking to do, is if I try to go to my SVN page, I …

Member Avatar for onaclov2000
0
145
Member Avatar for YoTaMiX

Hello to you all , I am required to write a program which gets a Math Expression (without checking it is good) and put in Stack only the Brackets . Implementation of Stack is One-Way Linked List Only. Examples for Good/Bad Expressions : (a*{b+c}-4/x +[e-5]) - GOOD (5+} - BAD …

Member Avatar for Berkut
0
283
Member Avatar for Skrutten

I'm trying to use my methods, but i always get " <bound method Deltagare.tavla of <__main__.Deltagare instance at 0xfba58>>" what does it mean? is something wrong with my class?

Member Avatar for hondros
0
104
Member Avatar for Placinta

Hi. I have this part of code. [CODE] int main() { int **table = NULL; allocated_matrix(table, 3, 3); //next instructions } void allocate_matrix((what_type_here)table, int rows, int columns) { table = (int **) malloc(rows * sizeof(int *)); for (int i = 0; i < rows; i++) { table[i] = (int *) …

Member Avatar for Placinta
0
138
Member Avatar for pilu

Hello, I'm quite new to c#. I have one C++ dll in which I have the two simple add & delete functions. [code]int MyTestFuncs::Add(int a, int b) { return a + b; }[/code] I have to access them into the C# code. I have faced the following error - When …

Member Avatar for DdoubleD
0
291
Member Avatar for jlego

I am taking user names and id from a database and dropping it into a combo box for users to select there name. in vb 6 i used to do the following: [code] do until rs.eof = true with me.combobox.comboitems.add(,, rs.fields("Name")) .tag = rs.fields("ID") end with rs.eof.movenext loop [/code] the …

Member Avatar for jlego
0
148
Member Avatar for liamfriel

Hello All, I got an email like this: [QUOTE]Details: Your site is hacked lock hear (mafiaradio.is-a-chef.net) Resolved: (213.175.205.68)and lock hear [url]http://mafiaradio.is-a-chef.net:8000/[/url] u will see your site is hacked ! clean your root and change your users password !![/QUOTE] I checked the url and it was indeed our site - I …

Member Avatar for liamfriel
0
100
Member Avatar for newcoder10

Hi All, I would like to know what's the best way to write function(global) in asp.net c# Framework 2.0 to check for textbox in a form (i have about 80 textbox on one form and I have many forms and textarea and I have list of 90 ro 100 words …

Member Avatar for newcoder10
0
120
Member Avatar for wonderland

Hi, My apologies if this is the wrong section. I wanted to know is it possible to set up .htaccess so that when user is promted for username and password, username is already input. OR just password is needed in order to proceed ? Thanks

Member Avatar for wonderland
0
103
Member Avatar for Niccloud

I was wondering for my school major web project. I have seen from some websites that they have created a floating window on a webpage. I was wondering if anyone had any suggestions on how I can go about doing it.

Member Avatar for diafol
0
73
Member Avatar for azra36

in this code i check if i'm getting data blocks in order, if not inorder i return NULL,i.e ask for next block, if in order i write the contents of data block to a file pointed by fpdddb. the contents of DDB_Parser.BlockDataByte array keep changing every time. what is the …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for foxmulder

Hi! For my last assignment I was told do create a program which can read-, sort- sand save a textfile (.txt). For example, I have a textfile containing 5 movies, this file is going to be read by the program and then sorted (in alphabetical order) and then saved to …

Member Avatar for Ancient Dragon
0
198
Member Avatar for Guy Perkins

It's been a while since I have had to create a search box to search and display data from sql data base. Just need a little push to refresh my memory. Thanks

Member Avatar for iamchamith
0
90
Member Avatar for manowar83

Hi, everybody! I want to know if there is a way to resolve my problem. So I want with xpath to get only nodes without their child nodes. My xml is: [code] <ts> <uc> <Questions> <q /> <q /> </Questions> </uc> <uc> <Questions> <q /> <q /> <q /> </Questions> …

Member Avatar for yuvanbala
0
350
Member Avatar for girl.java

hello everyone could u please solve this for me Write embedded JavaScript code in the required HTML tags that accepts three numbers from the user and pring out the maximum as the following result : First Number is : 3 Second Number is : 4 Third Number is : 5 …

Member Avatar for girl.java
0
103
Member Avatar for Benderbrau

Hello, I'm new to hashtables in C#, and I'm trying to refer to a bit of Java code, but having a problem. Here's the Java... note: adjacencyMap is a Java hashmap. [CODE] int count = 0; for (int i=0; i< adjacencyMap.CAPACITY; i++) { if (adjacencyMap.keys[i] != null) { LinkedList edges …

Member Avatar for avirag
0
130
Member Avatar for forstudy3

I have written a function which will open the file with the input name provided.I am compiling on a Linux box using g++ compiler.Detail code below Plz let me know what is the wrong in code. [CODE]1 #include<iostream> 2 #include<fstream> 3 #include<string> 4 #include<stddef.h> 5 #include<cstddef> 6 #include<cstring> 7 8 …

Member Avatar for Clinton Portis
0
295
Member Avatar for whitestream6

I get these errors in a script of mine: [CODE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\www\vhosts\myradiostation\test.php on line 13[/CODE] and my original page (included in another page): [CODE] <?php //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORDREMOVED"); //select …

Member Avatar for DW Master
0
181
Member Avatar for ruwanaru

What i need is Toggle the each div with the relevant check box ex:- when i checked "[B]div1chk[/B]" i want to toggle "[B]div1[/B]" [CODE] <input type="checkbox" id="div1chk" /> <input type="checkbox" id="div2chk" /> <input type="checkbox" id="div3chk" /> <div id="div1"> div1 showed </div> <div id="div2"> div2 showed </div> <div id="div3"> div3 showed …

Member Avatar for terrial
0
127
Member Avatar for XshulderX

Hey I have a problem! when I try using SQL lite in viusal studio. [code] using System; using System.Collections.Generic; using System.Data.SQLite; using System.Data; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; [/code] Whey Will visual Studio not accept using System.Data.SqlLite? The compiler says: "Error - The type or …

Member Avatar for sknake
0
69
Member Avatar for Stefano Mtangoo

Hi guys, its me again. How do you write templates for your sites (without template engine)? Pure php or what? I want to hear how you do it

Member Avatar for terrial
0
96
Member Avatar for Stefano Mtangoo

I know you would say ask to JS/AJAX forum! Don't worry, it isn't about codes, it is curiosity. I wan't to know if I can do Ajaxing using JQuery and PHP without writting all Ajax functions myself :) Just that :-/

Member Avatar for diafol
0
94
Member Avatar for pavan146

hey can any1 pls tl me hw to work on cgi pgms on windows..m new to ds language,facin a prob durin connectin perl prog throu browser...hw to do dat

Member Avatar for terrial
0
92
Member Avatar for ravmonster88

hi experts. this is my first post here hope you could help me.. [CODE] Private Sub FindFile() On Error GoTo x 'capture if error occurs Dim idx As Integer 'index to be incremented For idx = 1 To Combo.ListCount - 1 'loop to find the and load the text file …

Member Avatar for vb5prgrmr
0
80
Member Avatar for BSKI01

I know there are many things like this on this site already but my teacher is smart and will search to find out if we just copied from an internet interveiw Hello My name is Ben and I am a sophomore at high school in New York. I am currently …

Member Avatar for ithelp
0
102

The End.