199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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. ![]() | |
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 … | |
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 … | |
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'" + … | |
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 ... … | |
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 … | |
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 … | |
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 … | |
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; … | |
how can write a pascal program that do minus,sum and muliply tow number with 50 digit??? please answer or mail to me. | |
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); … | |
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. … | |
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? | |
Hello, I want to know how to write java code to retrieve content and position of an xml element using sax parser. | |
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 … | |
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"> … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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. … | |
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 … | |
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; … | |
![]() | 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 … ![]() |
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 … | |
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? | |
![]() | 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 *) … ![]() |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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. ![]() | |
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 … | |
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 … | |
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 | |
![]() | 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> … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 :-/ ![]() | |
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 | |
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 … | |
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 … |
The End.