132,726 Archived Topics
Remove Filter ![]() | |
Hi all I m trying to filter a sql db with many filter criteria which inert the user in textboxes .. i ve tryed this query [CODE]query = "Select * from T_INCIDENTS1 where IFF (txtPostcode.text is notNull) then Incident_Postcode='" & txtPostcode.Text & "') and iff (txtDMA.text is notNull) then Incident_DMA='" … Software Development vb.net | |
Hi! I've been having this problem recently: I wrote this code which, practically, reads lines of text from a text file (e.g. Microsoft Notepad file) and stores them into a vector. Each line has three parts: the product code, the product amount and the product name. The user is offered, … Software Development algorithm c++ file-stream | |
I'm using python IDLE v. 2.7.2 and I get the same error report with my program. [CODE]>>> def menu(list, question): for entry in list: print 1 + list.index(entry), print ") " + entry return input(question) - 1 [B]items[/B] = ["Cup","Vase","Table","Lamp","Bowl","Door"] keylocation = 3 keyfound = 0 loop = 1 print … Software Development python | |
this is the code that i did: [CODE]import javax.swing.JOptionPane; public class MidtermExam { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int x; int y; int z; int count = Integer.parseInt(JOptionPane.showInputDialog(null,"Enter any Number:")); for(x=1;x<=count;x++){ for(y=x;y<=count;y++){ System.out.print(x+""); } System.out.println(); } } } [/CODE] … Software Development java java-swing | |
hello i trying to learn how to type in for exampel 5 and its going to type out 5 4 3 2 1 0 [CODE]import java.util.Scanner; class indexerad_variable { public static void main( String args[] ) { int i= 0; while (i<= 100){ System.out.println("your number: "); System.out.println((100-i)); i++; } } … Software Development java | |
Hey all, I'm trying to show some concatenated data in a CheckedListBox so that users are able to select the data for use later on. Here is the code I am using currently: [CODE]Dim con As New MySqlConnection Dim theQuery As New MySqlCommand Dim theTables As New DataTable Dim theAdapter … | |
[CODE]Option Explicit On Option Strict On Public Class workschedule Public Sub Start() Dim choice As Integer = -1 While (choice <> 0) WriteMenuText() choice = Convert.ToInt32(Console.ReadLine) Select Case choice Case 0 Case 1 Week() Exit Select Case 2 Nights() End Select End While End Sub Public Sub WriteMenuText() Console.WriteLine("-------------------------------------------------------") Console.WriteLine(" … Software Development vb.net | |
My assignment is to create a program that accepts a list of exam scores (ranges from 0-100) and output the total number of grades and then the number of each in letter grade.. but my problem in the beginning of doing my program is: [CODE]public class Grades { /** * … Software Development java | |
Please help!!! What would be the algorithm form of the following program:- [code]import java.util.*; public class quizcontest { Scanner sc=new Scanner(System.in); String name; int ans1,ans2,ans3,ans4,ans5; //declaring variable// void acceptname() {System.out.println("****************************"); System.out.println("|||||-----Please Enter Your Name-----|||||"); name=sc.next(); System.out.println("****************************"); System.out.println("+++++Best Of Luck ! "+name+" +++++"); } void sports() { System.out.println("Here Starts Our Quiz … Software Development algorithm http-protocol java storage web-browser | |
Hi, I am trying to define a 'null' LINQ Table as a global variable and then use a switch statement to deturmine what the Table should be. I am having problems defining the datatype and also assigning values to it. Hopefully the code below will explain better. [CODE] System.Data.Linq.Table table; … | |
hiya i need to create these if statements please can someone show me how to create them i have attached an image alongside this thank you so far i have this public class Logic2 { int Val1, Val2, Val3, Result1, Result2; // creating 1,2,3 integers public void Calculations (int Val1,int … Software Development java | |
How do we write something to square these calculations Result1 = Val3-Val1sqaured; Result2 = Val3-Val2; i need to square these calculation how would i do it so it meant to look like Result1= Val3-Val1sqaured; i cant get the squared bit thank you Software Development java | |
Hi, please help me. Say I have 2 lines of code below. I want to "print ranking" and have result of "1" (force string to use global variable) instead of the letter "a". What are the methods available? a=1 ranking = "a" Can you please help me out? I'm noob … Software Development python | |
Hi guys i need help i want to move the existing data from table 1 into table 2 how i need to write the query. I tried the select into statement but it did not work at all. So how to do it . Please help i doing this on … Software Development sql visual-basic | |
Okay, so I think it will be easier to show you then explain. I am making Minesweeper, I have 100 toggle buttons, I have a randomizer to place 10 bombs. [CODE] ArrayList<Integer> bomb = new ArrayList<Integer>(); Random rand = new Random(100); for (int i = 0; i < 10; i++) … Software Development java | |
Hi Everyone, I have a gridview [CODE] <asp:GridView ID="grid" runat="server" AutoGenerateColumns="false" DataKeyNames="Id"ShowHeaderWhenEmpty="true"> [/CODE] inside the gridview there is a column with checkbox and another label. [CODE] <Columns> <asp:TemplateField> <ItemTemplate> <asp:CheckBox runat="server" ID="Retrieve" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField> <ItemTemplate> <asp:Label ID="lblName" runat="server" Text='<%# Eval("Name") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> [/CODE] My question is how … Software Development | |
hello ! i am working on an application and i want to connect it with mssql database , i dont know about the version of installed mssql server at the pc , how can i get the version of installed mssql server so that i can connect my application with … Software Development client-server sql vb.net | |
Can anyone help me by giving out a complete tutorial on the step by step way a connecting to a database using VB6? Software Development visual-basic | |
what does the following code means in Qt programming.. QDialogButtonBox::Ok why are we using QDialogButtonBox:: . | |
I have an application which calls an external process. I would like this process to be open as soon as it is called. i.e. with no user interaction. This is because I would like to send Keys to it to interact. I know how crude this is but this is … Software Development vb.net | |
![]() | I need to know how to create methods to compare two sets of singly linked lists. The only problem is that I can't put a linkedlist inside the method parameters. Please help [CODE]import java.util.*; public class SLinkedList { protected Node head; // head node of the list protected Node tail; … Software Development java linked-list ![]() |
Hi all, I need help with a code to search Sheet1 and copy to Sheet 2. I have attached a Workbook to simulate what I want to accomplish. I want to press a button on Sheet2 which would run the macro a search dates on Sheet1 and copy the name … Software Development vb.net | |
I have been trying unsuccessfully to calculate the "bearing" between 2 Universal Transverse Mercator points. Lets call them head and tail. head has points $XH = 756979.0 $YH = 7951269.2 (x,y) tail has point $XT = 765484.9 $YT = 7951229.6 (x,y) what I have been trying is as follows: (variables … Software Development perl | |
Hi all , I have some data with a lot of colums but I just want to put out some colums in the diffirent file. I find in forum that have the question [url]http://www.daniweb.com/software-development/perl/threads/377421[/url]. I used that to solve my problem but it is not seccesfull. I can put out … Software Development perl | |
I have a code that I am trying to use for AI, and I am getting a strange error like result, even though the program can execute. here is what is displayed when I print out the character array after converting to a string. [CODE] [Ljava.lang.Character;@2e3fe12e [/CODE] Here is what … Software Development java | |
For part of a programming that I'm writing, I want to generate random numbers between the range of -1000 and 1000. My teacher never spent much time on the rand function, and I'm not quite sure how to specify a range like that. Any help would be greatly appreciated. Thanks! Software Development c++ | |
ok, so i have lots of audio in my program that only plays once, and that all just works fine and perfect This is what i do to play music [CODE] try { InputStream a = new FileInputStream ("Sounds-Music/MainTheme.wav"); theme = new AudioStream (a); } catch (java.io.IOException z) //catching the … | |
Hi and Hello I just wonder where to put the click event of a commandbutton in this code, the command button is for the alphebet and are indexed from 0 to 28 [CODE]Dim startpos, extpos Dim Entry As ADRDATA, NumRecs, i Dim tmpStr As String Dim strDatum As String 'Dim … Software Development visual-basic | |
I've tried to make a [URL="http://en.wikipedia.org/wiki/Deque"]DEQUE[/URL] program. My book on data structures (Seymour Lipschutz) doesn't have an algorithm on DEQUES. Neither does [URL="http://www.itl.nist.gov/div897/sqg/dads/HTML/deque.html"]DADS[/URL] give a good description. All I heard was that it could be implemented better with two lists (one forward and one backward) & there are 2 types … Software Development algorithm c linked-list queue | |
Hi everyone, I'm trying to figure out how I can write information stored in a variable to a file (right now I have a text file, but that's probably not the best way to do it) and then be able to recall that information back to the variable after I … Software Development c | |
Someone please tell me the difference between 0 and '\0' and NULL. I thought I knew it! 0 and NULL is the same thing "Essentially".. '\0' is a null terminator for a string.. It's just sometimes when I convert a string to char array and do some encryption on it, … Software Development c++ encryption | |
Hi, I'm currently trying to program a sudoku solver. As a beginner I wrote pseudocode to establish what I'd have to do. One of the first things was to make sure each number in each of the 3 x 3 grids aren't equal to any of the others. Here is … Software Development vb.net visual-basic | |
While surfing the web I got to this site: [url]http://en.wikipedia.org/wiki/Fourier_series[/url] “Hey, I why not write something like this in C#!” The rather scary looking formulas did not withhold me to start coding (see below Fig. 1 and Fig. 2) The formula from Fig. 2 is hidden under one of the … Software Development c# mathematics | |
I am trying to create a prime factorization c++ program, and halted immediately by this "else" error. I would really appreciate some assistance with my coding. I am new to c++, so I am just getting used to the rules. Here is what I have so far: [CODE]#include <iostream> using … Software Development c++ | |
![]() | I need help with an add boolean method in a singly linked list, The only difference is that i start off with a dummy head. The method's job is to add non-repeating objects to the linked list. Please help: [CODE]public boolean add(Object newData){ Node current = head.getNext(); Node v = … Software Development java linked-list ![]() |
Hi guys I have what I think is a really simple problem but I just don't seem to GET Linked Lists or at least how the nodes work. I have a class that implements these methods: public boolean add(Object newEntry); public boolean add(int newPosition, Object newEntry); public Object remove(int givenPosition); … Software Development display java linked-list ![]() | |
:-/ Is there any function in MouseListener that returns the x- and/or y-coordinates of the cursor relative to the origin of a JPanel which currently has the focus? ¡Ayúdenme, por favor! Software Development java | |
hi, my name is vic...i got one problem cannot fix....output for the number of times each of the tasks has been invoked...i run 3 times each of the tasks but the output always is this program has run 1 times..... [CODE]#include<stdio.h> #include<stdlib.h> void doTaskA(){ printf("Start of Task A\n\n"); int input_1, … Software Development c++ | |
hello. i have created String name,surname,country; int age; and a scanner which takes informations from keyboard. and this print lines: System.out.println("Name\t Surname\t Age\t Country); System.out.println(name+"\t"+surname+"\t"+age+"\t"+country); NORMALLY: EX: Name Surname Age Country JOHN smith 35 uk but IF NAME HAS TOO MANY CHARS IT IS NOT DISPLAYED IN THE SAME COLUMN. … Software Development java | |
im terrible at c++, absolute beginner, i can start and end programme writing, just the functions im awful at, for this one below, what is the ,to say, middle part of the programme Using <cmath> function pow(x,x), find x^x in small steps of 0.5 starting at x = -1 to … Software Development c++ | |
[CODE]Public Class CurrencyConverter Private summation As Decimal Private sum As Decimal Private curryncy As String Private exchange As Decimal Private final As Decimal Public Sub Start() WriteProgramInfo() ReadValuesAndSumNumbers() WriteResult() End Sub Private Sub WriteProgramInfo() Console.WriteLine(vbLf & "++++++ Finnish input type 0 ++++++") End Sub Private Sub ReadValuesAndSumNumbers() Dim done As … Software Development vb.net | |
[CODE]import java.util.*; import java.lang.*; import java.io.*; class wordOccur { public static void main(String[] a)throws Exception { int i; int[]f=new int[20]; System.out.println("Enter the Sequence of the String:"); Scanner s=new Scanner(System.in); for(i=0;i<f.length;i++) f[i]=0; String t=s.nextLine(); count(t); } static void count(String t) { int[] f=new int[14]; int i; String d=" "; String[] temp=t.split(d); … Software Development java | |
Hi all, My code for a function to count words is posted below, and the only error that appears when I build it in my compiler is that char present is uninitialized. My program will not run with this uninitialized value. I've been searching for info on how to initialize … Software Development c++ | |
Hi, I seem to be having a problem with displaying data in a second form. I've created a linear search algorithm which works just fine - it locates the records from the database. I now want to be able to display the record in another form, I've attempted this using … Software Development algorithm dataset display open-source vb.net | |
hi daniweb members I am using visual basic 2008. i have a listview and a datagridview which have both 3 columns like ProductCode,ProductName & ProductPrice. Now i want to pass listview values to datagridview in the same sequence. I want that when i double click on any row in the … Software Development listview vb.net visual-basic | |
Hello everyone, Im working on a task where I have to implement an array list based complete binary tree but im not too sure how to do so. My java knowledge is very basic, whilst I could implement a normal binary tree, when its array list based im clueless. I … Software Development java | |
HELP ME PLEASE. I AM A 1ST YR COLLEGE STUDENT :/ Define an interface Filter as follows: public interface Filter { boolean accept(Object x); } Modify the implementation of the DataSet class to use both a Measurer and a Filter object. Only objects that the filter accepts should be processed. … Software Development dataset java user-interface | |
hi guys, I have been using python since last 1yr. For my work I have to use large data that are at least of size 3000 to 30000 or even more quite a time. Since many months I have been using matrices. But when the size of the Matrix is … Software Development matrix-multiplication python | |
im trying to make my own kernel.... my kernel is loaded through grub... i tried creating the gdt and idt for myself... i dont know how to test the gdt and as far as the idt is concerned it failed to capture the division by zero error ... source code … |
The End.