132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for matjojo

I tried to make a way to let the user choose to which piece of the program it would go, i first tried *for* but later went and used *if*, this is the code: while True: whichcode = 1 #set the variable for the first time. while True: if whichcode …

Software Development python
Member Avatar for matjojo
0
196
Member Avatar for altjen

Hello... Im having a problem with "like operator" on SQL database Im using this code to search on database Dim DV As New DataView(dbDataSet) DV.RowFilter = String.Format("ID Like '%{0}%'", TextBox1.Text) DataGridView1.DataSource = DV and at textbox1 I type 2 in data grid view show all people who have number 2 …

Software Development client-server seo sql vb.net
Member Avatar for altjen
0
309
Member Avatar for matjojo

!python3! so i was trying to get a for loop to work to get a program to choose which part of the code it had to run, this is what i have: while True: whichcode = 1 #set the variable for the first time. for whichcode == 1: print code …

Software Development python
Member Avatar for matjojo
0
243
Member Avatar for Simil

Guys can anyone please explain to me the working of this function { "randamise()" }.

Software Development c++
Member Avatar for misi
0
227
Member Avatar for Thomas_25

Hi all, can i store multiple data items inside a doubly linked list? is this valid? struct node { int marks; int regno; struct node *next; struct node *prev; }*start; If this is valid, how can i assign values to the individual data items? next->marks=5; next->regno=3456; will this work?

Software Development c++ linked-list
Member Avatar for Thomas_25
0
408
Member Avatar for wilsonchama

Hi guys, I have a form called frmSales, with two textboxes and a list box. what I want to do is to fill the listview with product description from txtDescription and product from txtPrice when I click the add to cart button. the listview should also be able to add …

Software Development listview vb.net
Member Avatar for wilsonchama
0
1K
Member Avatar for naz1234

Hi , how to add numbers in specific count of rows in Datagridview like in this[Click Here](http://i.imgur.com/IZJ39Wq.png) picture. I already run this code to sum all collumn in my Datagridview. But I need to sum the 1+2+4 in collumn TEST1 without erasing the other data. Private Sub Button1_Click(sender As Object, …

Software Development vb.net
Member Avatar for DaveAmour
0
2K
Member Avatar for Athanassios

Hello, first of all I am new to vb.net so sorry if my question is stupid... :( I have text files that are something like this: "#...... "#...... 1.2 2.5 3.4 5.6 4.8 8.9 . . . Now I would like to add to the first column of the datagridview …

Software Development file-stream vb.net
Member Avatar for Athanassios
0
680
Member Avatar for Thomas_25

Hi all, I need help understanding a C++ problem. This is an assignment question. Create a base class ‘Account’ and two derived classes ‘Savings’ and‘Checking’. The ‘Savings’ and ‘Checkings’ information should be connected to each other using variable CREDITRATING. Transactions in any of those derived classes should be able to …

Software Development c++
Member Avatar for Thomas_25
0
134
Member Avatar for Kenneth_3

Hello, I am writting a code for class and I am having a hard time inserting my variables into my "cout". I know how to do it the long way but I know it has to be easier. Right know this is the portions I am working on: void displaySlpInt …

Software Development c++
Member Avatar for Kenneth_3
0
297
Member Avatar for RKVP

Hello. I need help with my assignment urgently. This is my assignment question and the follwoing is my code. It compiles but it doesnt give me the right output. 1. Run length encoding. Example: if the input is “AAABBCCCDEEFFA” the output will be “A3B2C3DE2F2A” 1. Input takes the form of …

Software Development c++
Member Avatar for rubberman
0
657
Member Avatar for altjen

Hi, after creating a software with SQL database (my other pc is the data server) this shown up " String or binary data would be truncated. The statement has been terminated " what to do? sometimes it imports the data sometimes it does not...

Software Development sql vb.net
Member Avatar for altjen
0
98
Member Avatar for dendenny01

I am trying to execute the query on server side and send the result to the client but at the time of returning the value to the client the error occurs Am trying to achieve this using RPC Protocol but i could not find out how to send back the …

Software Development java sqlite
Member Avatar for dendenny01
0
422
Member Avatar for karmstrong

I am attempting to convert a C application to python. I am having difficultiy on this particular for loop. Any ideas how I might proceede? bool Enigma2C::encrypt(char *inString, char *outString) { int16 csum = 1, checksum = 0; int16 tmpSum = 0; int16 i = 0; strcpy(m_keyCode, inString); // Calculate …

Software Development python
Member Avatar for Leslie_1
0
632
Member Avatar for Metalvoice

Hi i want to add items from multiple listviews to other Listview (Main Listview)when i click the same button each time select diffrent item from diffrent listview how can i do this with VB.net best regards

Software Development listview vb.net
Member Avatar for Mr.M
0
490
Member Avatar for rola theo

Good day guys I need help for adding 2 column in datagridview my project is : the import and the varibles are : Imports Excel = Microsoft.Office.Interop.Excel Imports Microsoft.Office.Interop.Excel Imports Microsoft.Office.Interop Imports System.Runtime.InteropServices Public Class Form2 Friend xlApp As New Excel.Application Friend xlWorkBook As Excel.Workbook Friend xlWorkSheet As Excel.Worksheet Friend …

Software Development microsoft-office vb.net
Member Avatar for rola theo
0
5K
Member Avatar for Courtney_1

HI, I'm having some trouble with this program - its supposed to return an acronym based on the input of the user: It prints three of the same letter instead of the acronym. Any help would be much appreciated. def acronym(phrase): a = "" for words in phrase.split(): a = …

Software Development python
Member Avatar for TrustyTony
0
6K
Member Avatar for naz1234

Hi, how to plot a chart from imported excel in Datagridview? I tried the tutorial from [HERE](https://www.daniweb.com/software-development/csharp/code/492766/display-excel-data-in-a-datagridview), but I do not know how to plot the chart. Previously, I used MS.Access for my Datagridview, then I manage to choose the Datasource. But, for this case, I imported an excel and …

Member Avatar for naz1234
0
206
Member Avatar for Ian_7

Hello All, I am trying to implement a program that takes a prefix expression/string and converts it into a postfix string. I looked up the general algorithim for this converson and tried to implement it myself into this program. The following code is taken from my main java file. My …

Software Development java
Member Avatar for Ian_7
0
1K
Member Avatar for Nataliya_1

I have to create function that reads the binary file of futball matches and shows the legue table. The table should contains, for each team, the name of the team, number of points, goals scored and goals conceded. Give 3 points for a win and 1 for a draw. The …

Software Development c file-system
Member Avatar for Schol-R-LEA
0
216
Member Avatar for rola theo

Hello !! I use vb.net with excel I have a buttom "get the name of the column from worksheet" with a combobox thi is the code of the button: Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click Dim Excols As New Dictionary(Of Integer, String) Form2.xlWorkSheet = …

Software Development microsoft-office vb.net
0
153
Member Avatar for Meftah

private void btnSearch_Click(object sender, EventArgs e) { if (searchtext.Text == "") { MessageBox.Show("Plese Inter Employee's ID you are searching for"); searchtext.Focus(); } else { OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\Employees.mdb"); OleDbDataAdapter ad = new OleDbDataAdapter("select * from Employee where EmpID=@EmpID", con); ad.SelectCommand.Parameters.Add("@EmpID", OleDbType.Integer); ad.SelectCommand.Parameters["@EmpID"].Value = int.Parse(searchtext.Text); DataSet ds = new …

Software Development dataset
Member Avatar for deltaitservices
0
178
Member Avatar for Emma Etigu

hello guys I have a data grid view with the following rows customerID, customerName, credit, debt. how do I implement filtering based on the customerID. I want to basically perform a search and display the results. thanks.

Software Development vb.net
Member Avatar for Emma Etigu
0
339
Member Avatar for Trevor_5

my code is as follows: class pottertr_Point{ private String name; private double x; private double y; public pottertr_Point(){ name="Org"; x=(0); y=(0); } public pottertr_Point getPoint(){ pottertr_Point p= new pottertr_Point(); p.name=this.name; p.x=this.x; p.y=this.y; return p ; } public void setPoint(pottertr_Point p){ this.name=p.name; this.x=p.x; this.y=p.y; } public void setName(String name){ this.name=name; } …

Software Development java
Member Avatar for stultuske
0
144
Member Avatar for entropicII

I have recently been writing some code that asks the user questions about german. br = new BufferedReader(new FileReader("C:\\Users\\Patrick\\Desktop\\Java Workspace\\germanTool\\src\\germanTool\\lesson1.txt")); String[] engList = null; String[] deuList = null; int i = 0; while (br.readLine() != null){ lineCount++; line = br.readLine(); engList[i] = line.split("\t")[0]; deuList[i] = line.split("\t")[1]; } Using this code …

Software Development java
Member Avatar for entropicII
0
222
Member Avatar for Dragos_1

#include <iostream> #include <fstream> #include <cstring> using namespace std; int va[20][2],i,j,iesire,intrare,st[21],as,ev,k=2,timp,mint=10000,d=0,t=0; float distanta,mind=10000; char comune[65][25]; struct intr { int t; float d; }v[65][65]; void init(int k,int st[21]) { st[k]=0; } void succesor(int k,int &as,int st[21]) { if(st[k]<65&&k<20) { st[k]++; as=1; } else { as=0; } } void valid(int k,int &ev,intr …

Software Development c c# c++ seo
Member Avatar for Schol-R-LEA
0
756
Member Avatar for brandon66

Im trying to implement queue with a linked list i think i have the enqueue function correct but im having problems with the dequeue. I can get it to delete the first number but then the rest of the list is empty can someone point me in the right direction? …

Software Development c linked-list queue
Member Avatar for brandon66
0
247
Member Avatar for geolotry

Hi all I have been struggling with this program for quite awhile. I can't seem to get the PRINTFREE and PRINTMATCH commands to work right. I seen a similar problem on here but I am still grasping at straws. Any help would be greatly appreciated. Here is the scenario for …

Software Development c++ linked-list web-design
Member Avatar for Christopher_11
0
341
Member Avatar for Saeed_3

consider a vector R whose coordinates xyz are given by R1,R2 AND R3.the length of the vector R is calculated as R len=squareroot of R1Squared+R2squared+R3squared.write a c++ program to prompt the user for the vector coordinates values and calculate and display the vector R length.please help me with the code …

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
380
Member Avatar for divinity02

hi guys j is there a way on how to analyze java snippet of codes, like for loops, while loop to check to see what will be the result of it, whether it would run, what results, or if it would give you any kind of syntax error, run time …

Software Development java
Member Avatar for JamesCherrill
0
117
Member Avatar for Mayukh_1

I have these files.. **str.h** #ifndef _str_h_ #define _str_h_ struct STRSTR { char* MainStr; char* SubStr; }; char* str_str(int, int, struct STRSTR* sample); void init(char*, struct STRSTR* sample); #endif /* _str_h_ */ **str.c** #include "str.h" #include <stdio.h> void init(char* str, struct STRSTR* sample){ sample->MainStr = str; } char* str_str(int index, …

Software Development c
Member Avatar for Mayukh_1
0
314
Member Avatar for fizzah zahid

if Al < 0 then put ffh in Ah else put 0 in Ah End_iF

Software Development assembly
Member Avatar for gusano79
0
88
Member Avatar for terriblecoder

Hi so I am suppose to write/fix this code up so it produces a monthly bill for a store. This is what I have so far. I know its suppose to have functions but im just doing it first this way because i find it easier.I think theres something wrong …

Software Development c++
Member Avatar for Schol-R-LEA
0
297
Member Avatar for learningjav

Create a class to represent a Book. A Book should have a title, author, edition, and number of pages. Choose the most appropriate types for each of these and make them private. Provide set and get methods for each of the instance variables. Also, create a toString() method that returns …

Software Development java
Member Avatar for learningjav
0
86
Member Avatar for showman13

Good Morning all, Hopefully someone can head me in the right direction. I know nothing about perl or cgi but have a script that I purchased and had modified by a programmer half way around the world. He uploaded it to my development domain and the script works just fine... …

Software Development client-server file-system perl
Member Avatar for 2teez
0
335
Member Avatar for furalise

Hi again everybody. I know there are some references to this kind of thing around the web but none of them are simple enough for me to understand. In my code below, I am trying to initialize a function pointer with a class member function but I'm not sure I …

Software Development c++
Member Avatar for furalise
0
504
Member Avatar for chester1908

Hello, i was wondering if i could get an opinion on the following code as it is giving me a headache: int counter = 498853097; int k = 0; clock_t start, end; float seconds1,seconds2; start = clock(); for (int i = 0; i < counter; i++) { k++; } end …

Software Development c
Member Avatar for chester1908
0
293
Member Avatar for AJN25

Hi guys I am creating a basic application and have set up a database in which i can pull data but im struggling to figure out how to split a listbox into 2 columns, any ideas would be much appreciated Thanks in advance Andy

Software Development
Member Avatar for AJN25
0
367
Member Avatar for Moon15

I have a text file No.,A ,B ,C ,D ,E ,F ,G 1 ,10,11,13,15,10,15,14 2 ,12,10,15,14,9 ,19,12 . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. . ,..,..,..,..,..,..,.. n ,..,..,..,..,..,..,.. I would like to sum just A+B+C+D+E+F+G Then put them in another text file No. Sum 1, 88 2, …

Software Development
Member Avatar for djjeavons
0
336
Member Avatar for JOHN-shirley

Please can someone help me and show me where i am going wrong ? The code below is not an assignment or homework it is something i am tryigng to do for work. The code scans a text file ( attached ) and stores 10 x 5 digit ints into …

Software Development c
Member Avatar for Moschops
0
177
Member Avatar for Linh_1

can someone show me how to do this please? I am new to programming languge? here is the requirement? Thanks. Create a database table with 10 records with the following fields: Lastname, FirstName, Phone Number, Street Address, City, State, Zipcode. The table name is: “User Info”. Please create the table …

Software Development java javascript visual-basic
Member Avatar for Aslam Mansoor
0
344
Member Avatar for Papa_Don

Hi Group, I attempting to save a file to a specific folder that is begins with the hotels property number. Currently I've manually listed the properties complete folder name in a text file. This is proving to be a management problem that needs to be fixed. The code I'm using …

Software Development file-system vb.net
Member Avatar for Papa_Don
0
288
Member Avatar for Aaron_JY

I know it's something I'm doing wrong, but I can't seem to figure out what it is. The console reads the text you input and replies to what you have sent with a message set specifically for your input message. When I input "hello", it replied with "Hello! How are …

Software Development
Member Avatar for muhammads744
0
743
Member Avatar for Sana_5

Can someone help me with my assignment?

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
410
Member Avatar for Madhu_5

Plz tell step step procedure to play music in my Microsoft visual studio 2005 for my opengl projects

Software Development opengl visual-basic visual-studio
Member Avatar for djjeavons
0
220
Member Avatar for andruluchko

Hello, I try to rename file or directory using JFileChooser() and JButton(). But it gives me a NullPointer exeption. I have FileChooser, Button and TextField where I write new name for my file or directory. Can you say where I go wrong and how to solve this problem. // button …

Software Development file-system java java-swing
Member Avatar for mKorbel
0
1K
Member Avatar for Gurjit_1

I know many if us are laughing seeing this question , but if i have taken some floating point value and I want if the result is integer it should have some decimal point answer eg - 1 can be integer number I want 1.0 to appear in my result. …

Software Development c++
Member Avatar for DavidB
0
393
Member Avatar for djjeavons

This snippet demonstrates how you can add VBA code to an Excel file at run time. **Prerequisites** In this snippet I am using Microsoft Excel 2013 with the Microsoft Excel 15.0 object library. Before you can use this code, you will have to change a setting within Microsoft Excel to …

Software Development microsoft-office vb.net visual-basic
0
2K
Member Avatar for Reza_5

Hello everyone! I am trying to divide image into blocks of 8x8 pixels and applying DCT Transform in each blocks. But I don't know how to divide the image. Thanks for helping me. namespace DCTTransform { public partial class Form1 : Form { Image<Bgr, Byte> img; Image<Ycc, Byte> imgYcc; Bitmap …

Software Development c# image
Member Avatar for castajiz_2
0
2K
Member Avatar for Mayukh_1

**Okay this is my first post and I am quite excited that how it will be recieved by the community. I have a long experience in C++ programming but never been a part of any community hence I believe that as a tyro, my mistakes will be ignored.** This post …

Member Avatar for NathanOliver
0
309

The End.