43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for gerchi152

Hi! I have this code in my program [CODE]sqlstat= "select bookNum from booktitle" sqlstat2="select bookNum, bookName from booklist where bookNum not in " & sqlstat & "and bookAuthor like '" ListBook.SelectedItem & "'"[/CODE] but it has "Incorrect syntax near the keyword 'and'" error... please help me with this... response is …

Software Development sql vb.net
Member Avatar for gerchi152
0
88
Member Avatar for Majestics

I m trying to pass a 10.10 value to double and it takes 10.1 instead of this? Any solution.

Software Development java
Member Avatar for mKorbel
0
313
Member Avatar for zachattack05

I'm curious about something. If I have a listbox that is databound and a filter is applied to that listbox based on the value in a combobox, what would be the best way to handle the null reference exception thrown when the form loads or the filter changes and everything …

Software Development
Member Avatar for thines01
0
85
Member Avatar for jbrunet

I have a DLL file written in C++, using Microsoft Visual Studio 2008. The socket class coding is an adaptation of [url]http://www.adp-gmbh.ch/win/misc/sockets.html[/url] and the whole thing works when compiled as a 32 bit DLL, but the Internet connectivity does not work when I compile it as a 64 bit DLL. …

Software Development c++ visual-studio
Member Avatar for jbrunet
0
206
Member Avatar for trisha0906

hi, can someone help me? i am using vb.net2010 and mssql as my database. what i want to do is when i open the form, the database will auto increment the student id and show it on the text box.

Software Development mssql vb.net
Member Avatar for trisha0906
1
2K
Member Avatar for vivekanandaan

Hi, What's the problem in the below code... [CODE] Dim ds As New DataSet Dim da As New OleDb.OleDbDataAdapter Dim cb As New OleDb.OleDbCommandBuilder(da) Dim dsNewRow As DataRow dsNewRow = ds.Tables("mr_head").NewRow() [/CODE] I am getting the below error : Object reference not set to an instance of an object.

Software Development dataset vb.net
Member Avatar for thines01
0
248
Member Avatar for bhavan kamble

I have 1 Table Called "Menu" there are some textboxes and a combobox. I want to fill data in the Textbox called "Menu_Rate" on Selection of combobox selected item & coressponding rate of the Menu shoud be displayed in the textbox. [U]This is my Code[/U] [CODE]con.ConnectionString = "Data Source=localhost;Integrated Security=true;Initial …

Software Development open-source vb.net
Member Avatar for bhavan kamble
0
2K
Member Avatar for jackbauer24

Here is my code: [CODE]class Catandmouse { public void CatAndMouse() { Animal cat = new Animal(); Animal mouse = new Animal(); int mouseCaught = (int) (Math.random() * 10); cat.CatchMouse(); int catgetsit = 0; if ( mouseCaught == cat.number ) { System.out.println("The cat caught the mouse!"); } else { System.out.println("The mouse …

Software Development java
Member Avatar for jackbauer24
0
88
Member Avatar for chasadjee

I am writing an application which calculates profit from 3 column values. The SQL is as follows in vb dataset designer; [CODE]SELECT ID, Sale - (Weight * 20) * (Rate -5) AS Profit From AgencyRegister WHERE (DatePart('yyyy', ArrivalDate) = ?) ORDER BY ArrivalDate[/CODE] I want to add another column of …

Software Development dataset sql vb.net
Member Avatar for chasadjee
0
538
Member Avatar for jade_91

well basically i have this code working to display distance to nearest station and the station name but i want it to show what line the station nearest is located on i've tried to figure it out but just dont seem to be getting anywhere with it the code (including …

Software Development java java-swing
Member Avatar for DavidKroukamp
0
103
Member Avatar for hust921

Hey everyone, i need a little help with searching a string and putting that date into another string. ex: [CODE] String com = ""; String mystring = "sometext here: !com shutdown"; // Magic happens System.out.println(com); // Output: "shutdown" [/CODE] "!com" is the constant to search for, shutdown is variable.

Software Development java
Member Avatar for hust921
0
132
Member Avatar for Mr.BunyRabit

Hey there. How do i stop this damn computer form automatically filling in my second Qoute when i make the first one " and then i have to press space for there just to appear one. It messes me around sooo badly with my programming. it does that wiht quotes, …

Software Development java
Member Avatar for Mr.BunyRabit
0
700
Member Avatar for Melow

Hy I want to validate expression as such: [code]AO:10 EM:1 IO:102 AO:SA EM:SA,AKA,LLMN[/code] so on... I'm noe to Regex and i came out with the following function: [CODE] public void checkFormat(String line) { String expression = "^[ACEILMNOU.]{2}+\\B[:]{1}+\\w{2,4}+"; Pattern subscriptionExpretion = Pattern.compile(expression, Pattern.CASE_INSENSITIVE); Matcher matcher = subscriptionExpretion.matcher(line); if(matcher.matches()) { System.out.println("matches " …

Software Development java regex
Member Avatar for Melow
0
193
Member Avatar for biojet

Hello, Could you please help me in following scenario in Perl scripting? I want to compare two text files & change the charter at the position. Output of this comparision in third file with flags C-CHANGE, N-SAME at the end of line. [CODE]IN PUT1: Posi 3 ATG 2 ACT 1 …

Software Development perl
Member Avatar for biojet
0
199
Member Avatar for iFrolox

Well i don't know how to start, so i'll give some info to see if someone can help me start or give me a push or anything. I got a .txt file containing Example: 1 SN_MOB_THIEF_NPC 도적 0 0 盗贼 0 0 Thief 0 0 0 0 0 0 0 …

Software Development vb.net
Member Avatar for iFrolox
0
124
Member Avatar for silvercats
Member Avatar for jbutardo

Hi, I have this program that uses OLEDB connection to open the excel file, and imports it's data. Then I use mysql connection to inserts all this data. Now my question is, is it possible that I can use mysql connection in opening the excel file, or only OLEDB connection …

Software Development microsoft-office mysql vb.net
Member Avatar for jbutardo
0
251
Member Avatar for silvercats

I've dumped hexadecimals of a text using windows debugger. So if those hexa values represent every single character by a single hex value,does it mean its binary is that hexa's converted binary value and pc deals with that character using binary but assembly language and people convert and use it …

Software Development assembly
Member Avatar for thines01
0
167
Member Avatar for pwolf

Write the function search(word, substring) that takes in a word and a substring as arguments and returns the position (0 indexed) of the substring if it is found in the word. The function returns -1 if the substring is not found. is there a method to do this? i tried; …

Software Development python
Member Avatar for TrustyTony
0
186
Member Avatar for triumphost

In pascal, you can have something like the following: [CODE] type TPoint = record X, Y: Integer; end; TPointArray = array of TPoint; T2DPointArray = array of TPointArray; [/CODE] In C++ I tried to replicate this and failed miserably. [CODE] struct Point { X: Integer; Y: Integer; }; struct PointArray …

Software Development c c# c++ pascal
Member Avatar for triumphost
0
7K
Member Avatar for vb.netfreak

Hi, I want to connect my vbform having two textboxes with a button.Each textbox will display some value from connected database in a loop (with interval of 5 sec for each value) on pressing button once. Front end :- Vb.net Database : MS Access Pls help me

Software Development vb.net
Member Avatar for vb.netfreak
0
3K
Member Avatar for iamthesgt

For a (homework) project, I have a class ComplexNumber that needs to be printed. I have a number of operations that can be done on objects of the class (addition, subtraction, multiplication, division). Each operation returns a new ComplexNumber to be printed. How exactly do I print this? Do I …

Software Development java
Member Avatar for iamthesgt
0
162
Member Avatar for a1a4a

Greetings I am on a project where the application read a text and execute commands in the text... i am having problems in the part of finding the command from the text. So let's say i have a file with the following text : [QUOTE] message:Hello this is a message …

Software Development visual-basic
Member Avatar for a1a4a
0
355
Member Avatar for pwolf

How to return the sum of the last digits of the values in a list? i cant think of an efficient way. If it wasn't for being in a list i could do it, but im really lost. Can anyone advise me? im going to look for a way in …

Software Development mathematics python
Member Avatar for pwolf
0
4K
Member Avatar for DarkMonarch

hey guys, i have some work to do in C on a windows platform, windows 7 actually. now i've look into the suggested IDE compiler combo you guys suggested and i've pickup Dev c++ i just type a test program, just to see how the compiler works [CODE] #include <stdio.h> …

Software Development c ide
Member Avatar for DarkMonarch
0
268
Member Avatar for iRoroKun

I need a help, do you know how can I automatically update a label by just putting something in a textbox? Let me give an example, when I put "Hello" in the textbox, the label will automatically change to "Hello". I hope you guys can help me. Thanks in advance! …

Software Development visual-basic
Member Avatar for AndreRet
0
106
Member Avatar for PF2G

Hi, i'm doing an app to manage a music school and i'm inserting instruments and i have to create the program (what do you learn) of the instrument. I'm doing a RichTextBox. Now i have some problems: 1st - is to save what i write in the richtextbox in a …

Software Development php vb.net
Member Avatar for Oxiegen
0
238
Member Avatar for scottd82

Hi everyone. I am doing my homework for my computer organization class and I'm running into a small problem. Before I explain what I've done, what I expect to happen and what is happening, I want to assure everyone that I am not looking for an answer to my homework, …

Software Development assembly
Member Avatar for Schol-R-LEA
0
366
Member Avatar for jackbauer24

Can two classes exist in a single .java file? Reply quick, please.

Software Development java
Member Avatar for jackbauer24
0
99
Member Avatar for PrimePackster

Here i have a working code, what i want to know is: When the user inputs elements to the array, i want it to be automatically aligned in form of an matrix. Instead of [ICODE] 1 2 3 4 5 6 etc....[/ICODE] But just as a matrix, like this [ICODE] …

Software Development c++ matrix-multiplication
Member Avatar for PrimePackster
0
258
Member Avatar for jade_91

Hi, basically ive been trying to write code to work out where the nearest station for a person is based on their current location. I did have it working to display nearest station name and distance from that station but something went wrong I must have accidently deleted something or …

Software Development java java-swing
Member Avatar for DavidKroukamp
0
142
Member Avatar for Melow

Hy, I have to write a program witch recognizes the extension of the file it gets as argument after that it has to validate the file line by line. A file should look like this: ex: Name, Age, Email, OptionalField1, OptionalField2 Anna, 22, [email]anna@smting.com[/email], completed Mark, 24, [email]mark@smting.com[/email], completed completed …

Software Development java
Member Avatar for Melow
0
183
Member Avatar for StephNicolaou

Hi all, This is also similar to web browsers which use the codes, &d for date, and &l&f&r for document name, etc. I would like to start the page number for 165, for example, is there a code to do this? (For within the print preview/page setup area). I've already …

Software Development ide java
Member Avatar for StephNicolaou
0
172
Member Avatar for Youg

Although, I could easily state quite a few people will be bored with these, I couldn't find someone else with my problem. The code below runs, though doesn't decrypt. It gets to the first "Error: Unidentified Character" and ends. Any help great appreciated. [CODE]#include <iostream> #include <string> #include <array> #include …

Software Development c++ encryption ios
Member Avatar for Youg
0
248
Member Avatar for ThaiAmL

Hello! I'm trying to write a program that will eventually carry out matrix multiplication (by another matrix and by a vector) among a few other methods for a homework assignment. However, the assignment says we first need to write a default constructor that creates the 3x3 Identity Matrix. I'm not …

Software Development java matrix-multiplication
Member Avatar for DavidKroukamp
0
854
Member Avatar for anand01

Hi all, when I use break statement like following it doesn't show any error [CODE] String o="": o = o + 2; z: for(int x = 3; x < 8; x++) { if(x==4) break; if(x==6) break z; o = o + x; [/CODE] but when I interchange the label(z) position …

Software Development java
Member Avatar for anand01
0
236
Member Avatar for rhone0809

my code: command1.CommandText = "INSERT INTO table1,table2(value1...,value2..)VALUES('" ...... "')" how to save multiple table is one query? i tried this thing but it didn't work. anyone who can help me with this please.. thanks

Software Development sql vb.net
Member Avatar for M.Waqas Aslam
0
151
Member Avatar for Lingson

hi, i've tried to search any examples to understand more about how to use the urllib in python 3.1, but all the tutorials are for python 2.x i need to do just a simple thing like getting the text (as string) and manipulate it. the code in python 2.x would …

Software Development python
Member Avatar for Rocketdlib
0
2K
Member Avatar for enterpise

[CODE]package test; import java.util.*; import sun.security.krb5.internal.UDPClient; import java.net.*; public class CMD { public static void main(String[] args) throws UnknownHostException, SocketException { DatagramSocket sock = new DatagramSocket (); Scanner keyboard = new Scanner(System.in); String fisrtarg=null; // System.out.println("Enter CMD"); // fisrtarg = keyboard.nextLine(); if (args.length > 0) {//this is important if no …

Software Development java tcp-udp
Member Avatar for enterpise
0
209
Member Avatar for nijinjose123

Hi, Could anyone please help me in writing code to convert Hex Values to ASCII Thanks

Software Development c++
Member Avatar for raptr_dflo
0
1K
Member Avatar for sync101

Hello, my assignment is to write a postfix calculator. I have written the program. It works well, except for when the user enters in an error. Lets say, user enters "2 A +" it changes the A to a '0'. Which it shouldn't be doing. I have tried strtol() as …

Software Development c
Member Avatar for WaltP
0
191
Member Avatar for poojavb

Hello All, I need help in this... I am attaching a zip file which contains my project in Microsoft Visual Studia 2010 along with Crystal reports.... Please help me....its giving a lot of errors...and I dont know from where it is coming and why.... Urgent help....

Software Development vb.net
Member Avatar for poojavb
0
97
Member Avatar for shann1718

i have a data grid,, connected in ms access via code, on its celldoubleclick event i have the code [CODE]Public Sub dgv1_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgv1.CellDoubleClick Dim empid As Object = dgv1.Rows(e.RowIndex).Cells(0).Value display.Text = Convert.ToString(empid) editempfrm.ShowDialog() End Sub [/CODE] it suppose to display its content …

Software Development vb.net
Member Avatar for ChrisPadgham
0
686
Member Avatar for gowans07

Hi there, I've using the ADO connection within vb6. I know about the Data.Recordset.Addnew and Data.Update way of adding a new record but is there a way of adding a new record without having to link objects to the Table/Entity? Is it possible to use variables to do this. Currently …

Software Development visual-basic
Member Avatar for gowans07
0
123
Member Avatar for Aleksej

Hello everybody. I hope I'll find help here. I didn't know where to put this topic: here, or on php or delphi forum. Because I don't know from what to start. I have a lot of data stored in Word document. Over 1500 pages. And I want to make a …

Software Development delphi vb.net
Member Avatar for ChrisPadgham
0
116
Member Avatar for DeanMSands3

In my wayward youth, I learned a little bit of inline assembler in Turbo C. And that was fun. Then I got into DJGPP which came with GCC and Bell Syntax. And it was confusing. And I gave up. Fast forward 12 years. I'm 30, finishing a bachelor's in CS. …

Software Development assembly
Member Avatar for DeanMSands3
0
223
Member Avatar for scheppy

Hi all I'm wondering how i add Action listener to this Button It has no text, just an image, from an ImageIcon I tried I3 for the action listener but i doesant work [CODE] ImageIcon I3; I3 = new ImageIcon ("carrier.gif"); J1 = new JButton (I3); J1.addActionListener (this); J1.setBounds (420, …

Software Development java
Member Avatar for scheppy
0
145
Member Avatar for hekri

Hi I'm new to this. I'm a mechanical engineering student and have to learn c++, i have this book and there's a program source code. My question is: why do we need to include ctime in this code and what is it good for? [CODE]#include <iostream> #include <cstdlib> [B]#include <ctime>[/B] …

Software Development c++ engineering
Member Avatar for hekri
0
3K
Member Avatar for Mr.BunyRabit

hey there. Im using Netbeans. i have a form where there is a button edit. when i press it, other form opens, and the selected item on the previous page has to be edited in the databse. So bottom line, i have to get a String / int that i …

Software Development java
Member Avatar for stultuske
0
173
Member Avatar for thecoolman5

hi, I am trying to make a variable equation solver using DEV-C++. I just need to know how to get C++ to solve an equation inputed by the user. So you input something like 1+1 and i need it to solve the problem and output the answer. heres an example: …

Software Development c++
Member Avatar for eddiecrosby
0
4K

The End.