43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lithium112

var query = (from dt1 in dta.AsEnumerable() join dt2 in dtb.AsEnumerable() on dt1.Field<string>("column1") equals dt2.Field<string>("column1") into outer from Dt2 in outer.DefaultIfEmpty() group new { Dt2 } by new { SearchKey = dt1.Field<string>("SearchKey") } into g select new { Status = g.Select(r => r.Dt2) == null ? string.Empty : g.Select(r => …

Software Development
Member Avatar for lithium112
0
2K
Member Avatar for mark103

Hi guys I need a bit of your help. I've created the variables that I want to store a list of arrays outside the for loop. I have got a problem with the code that I currently using. When I try this: import xbmc import xbmcgui import xbmcaddon class ProgramControls(object): …

Software Development python
Member Avatar for mark103
0
658
Member Avatar for exoruel

Good day everyone! I have the codes for such a problem where, to create a program that counts how many times the second string appears on the first string. Here it is: #include <iostream> #include <conio.h> using namespace std; int main () { char first [100], second; int count; cout …

Software Development c++
Member Avatar for exoruel
0
370
Member Avatar for rhada79

Need Assistance Please. My code is not adding the size and the toppins: import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.event.*; import java.util.EventObject; public class PizzaCalculator extends JFrame implements ActionListener { JPanel westPanel = new JPanel(); JPanel eastPanel = new JPanel(); JPanel centerPanel = new JPanel(); JPanel northPanel = new …

Software Development gui java java-swing
Member Avatar for rhada79
0
3K
Member Avatar for Steven_10

Hello I am studying for the 1Z0-803 (Oracle Certified Associate, Java SE 7 Programmer) exam and I have the hardest time with following the flow of nested loops. On practice tests I do ok on more complex concepts like polymorphism but I miss over half of question with nested loops. …

Software Development java oracle
Member Avatar for JamesCherrill
0
278
Member Avatar for somayyah

convert degree to radian in a table form

Software Development c++
Member Avatar for rubberman
0
138
Member Avatar for OMER AHMED

i am making a security program which only administrator can run. now i place one checkbox in registration form that if the user is administrator then he will check that box and program will not ask for " run as administrator" now i need code for checkbox something like if …

Software Development vb.net
Member Avatar for OMER AHMED
0
116
Member Avatar for saly.alsayed.7

1) When the program is executed, it asks the user to enter a password 2) When the user enters password, its characters should not appear and * must appear for each character. 3) The program compares this password with hardcoded constant password (e.g. pass DB ‘Abc123’). 4) If the entered …

Software Development assembly
Member Avatar for saly.alsayed.7
0
275
Member Avatar for Zaprzap

This is the first time I have felt a smidgen of fear when learning C++. I am doing an exercise in *Accelerated C++* and the fear is that I'm not appropriately handling memory. I'll list my code below but I figured I would give some specific questions first: 1. Is …

Software Development c++
Member Avatar for Zaprzap
0
231
Member Avatar for Papa_Don

Hello Group! I am in need of converting a "text" file created by a UNIX based program (it is only semi-formatted) and put it into a more-formatted text (.txt) file. Put a different way, this needs to be converted such that it can be opened in Notepad and it be …

Software Development microsoft-office unix vb.net visual-basic
Member Avatar for Papa_Don
0
671
Member Avatar for EdJones

Which class structure is better for what purposes. This one: class Text: def __init__(self, passage): self.s = passage def read_text(self): return self.s def grow(self, sentence): self.s = self.s + sentence.s class Sentence(Text): def __init__(self, sentence): Text.__init__(self, sentence) self.s = sentence def format(self): self.s = self.s[:1].title() + self.s[1:len(self.s)-1] + ". " …

Software Development python
Member Avatar for EdJones
0
158
Member Avatar for 4evrmrepylrning

I'n trying to convert a dbf file to a csv file(or anything else really). I found this on the interwebs but I get an error import csv from dbfpy import dbf import sys dbf_fn = 'in.dbf' csv_fn = 'out.csv' in_db = dbf.Dbf(dbf_fn) out_csv = csv.writer(open(csv_fn, 'wb')) names = [] for …

Software Development python
Member Avatar for Nisar222
0
13K
Member Avatar for humorousone

Is there a good pratice for naming form controls which are purely cosmetic? If not, any suggestions for variable names for these controls? E.g A label (which never changes) above a text box.

Software Development
Member Avatar for humorousone
0
261
Member Avatar for stan3688

Hello Guys, its my first few months on progamming, love the course but things are abit confusing at the moment, i have this assignment below, pls i will appreciate if anyone can help me out. Write a program to accept a number of scores from a user. Use floating point …

Software Development python
Member Avatar for Gribouillis
0
239
Member Avatar for chahinez.abdelo.9

product between 2 arrays of 2 dimensions and be the score is stored in another array using ecplise and gridsim for exemple: mat3[i][j]= mat1[i][j]* mat2[i][j]

Software Development java
Member Avatar for chahinez.abdelo.9
0
194
Member Avatar for mark103

Hi guys, I'm working on my python script to get the list of elements in the arrays. I'm using the variable `position_x = elem.getX()` to get the list of pixel size for the elements. Here is the output: 18:32:12 T:4060 NOTICE: 375 18:32:12 T:4060 NOTICE: 724 18:32:12 T:4060 NOTICE: 1073 …

Software Development python
Member Avatar for Gribouillis
0
246
Member Avatar for Chrislynn_1

I have a requirement to update a configuration file content at a specific lines location. How to do this in python. For example, I have a configuration file which is having below 5 lines now: define host{ name kiki-server; XXXX XXXX; XXXX XXXX; } I am interested have my python …

Software Development file-system python
Member Avatar for Chrislynn_1
0
240
Member Avatar for TheAustinG

Hello fellow coders, I am currently taking a C++ class and have a final project due very soon. We are recreating the game Othello/Reversi using the console. So far I haven't run into really any problems and it hasn't been too bad. I have almost all of it complete except …

Software Development c++
Member Avatar for TheAustinG
0
495
Member Avatar for PinoyDev

Good day! I have a listview loaded in a form in a **lvwIcon** view with checkboxes enabled.. I have checked some items from it, let say 5 items. Now when I switch the view to **lvwReport**, the checked items are gone. How to make it selected again? Thank you for …

Software Development listview visual-basic
Member Avatar for PinoyDev
0
183
Member Avatar for My_1

I got 1 when i pass button and if i pass the second timeis still 1 not is ++ int click = 0; public ButtonHandler(int x, int y, MineGrid g) { row = x; col = y; grid = g; } public void actionPerformed(ActionEvent event) else { click ++; JButton …

Software Development java
Member Avatar for My_1
0
181
Member Avatar for OMER AHMED

why i am receiving this error and how i can solve it See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IndexOutOfRangeException: Index was outside the bounds of the array. at WindowsApplication1.fol_hide.fol_hide_Load(Object sender, EventArgs e) in D:\Projects\3 …

Software Development assembly vb.net
Member Avatar for OMER AHMED
0
740
Member Avatar for Papa_Don

Group, In a post in VB 4/5/6, I question how to open a file with a wildcard as the file extension ([https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/488809/accessing-a-file-with-a-ever-changing-name](null). That worked fine for VBA. However I'm trying to do the same thing using VB.net. I'm having trouble finding the correct syntax. I hope you can help. Specifically, …

Software Development file-system vb.net visual-basic
Member Avatar for Papa_Don
0
4K
Member Avatar for CodyOebel

Can someone please tell me why when I check one of my boxes, and click the button I get no message box in accordance to which checkbox I checked. #include <windows.h> #include <dos.h> #include <stdlib.h> #include <fstream> using namespace std; #define IDC_MAIN_BUTTON 101 // Button identifier #define IDC_MAIN_EDIT 102 // …

Software Development c c# c++
Member Avatar for CodyOebel
0
1K
Member Avatar for Labdabeta

Hello, I posted on this forum two times before about a particular pair of non-printing characters being inserted into my code. You can find the threads [here](https://www.daniweb.com/software-development/threads/441611/stray-non-printing-characters-in-my-programs) and [here](https://www.daniweb.com/software-development/cpp/threads/450296/arbitrarily-appearing-non-printing-character). Two great posters tried their best to solve this problem (mike_2000_17 and deceptikon) to no avail. Finally, using the hints that …

Software Development c c++ gaming
0
157
Member Avatar for CodeWarrior14

Hello everyone, I'm new here - just joined. I'm strugling with a bit of code. Im trying to check if a number is a prime number, but my program produces weird results. Herse the code: { Vefies if a value is prime. } function TMactacHash.IsPrime(value: integer): boolean; var i, overValue: …

Software Development pascal
Member Avatar for CodeWarrior14
0
323
Member Avatar for ZeroEddy

Hi im new to python and am trying to make a simple tank game where I want the tank gun to follow the position of the mouse cursor. Im am having some trouble in doing this. Below is my code. Whenever I run I get an error. So far I …

Software Development gaming python
Member Avatar for ZeroEddy
0
415
Member Avatar for Papa_Don

Group, I'm taking a text file that is storing ID numbers in a single column that looks like this: 123 3050 3971 I'm looping through the text file line for line and putting each ID number into a textbox. My question is: Am I writing this code the most efficient …

Software Development vb.net
Member Avatar for Papa_Don
0
3K
Member Avatar for GoneGirl

Hi guys, Im trying some stuff out in java but im a little stuck and confused by stackoverflow answers so I wanted to ask here if its ok. I have a lot of code but I just took out this one little part that i wanna be able for a …

Software Development java
Member Avatar for GoneGirl
0
139
Member Avatar for Slavi

Hey guys, some of you might know me from other sub sections of Dani Web. I am about (just started) to learn Python. And not just learn but possibly make it my prefered language over all. So, I've read the thread from `vegaseat` for beginners and it has a link …

Software Development apache python
Member Avatar for vegaseat
0
240
Member Avatar for smurfy

Hi everyone ; Thanks to Dani, there are lots of links provided around the topics like this. I am a single Java programmer, writing short java programmes in Eclipse. However, i need to work with others and produce long but managable java codes. Briefly my ambition is : 1.Creating some …

Software Development java oop
Member Avatar for smurfy
0
507
Member Avatar for TIP.Synergy

Hi, how to transfer datagridview record to listview? anyone have an idea?

Software Development listview vb.net
Member Avatar for kevinmark
0
3K
Member Avatar for Tigr@

do { Console.Write(" <jaar 1582 - 2500>..."); } while(!int.TryParse(Console.ReadLine(), out jaar) && jaar < 1582); Why doesn't this work in C#? you can't test a integeren in a do while when there's a tryparse apperently whats the best way of doing this? Thank you for your time.

Software Development
Member Avatar for Tigr@
0
168
Member Avatar for EdJones

As part of a study exercise I wrote a procedural script and would like to ask whether anyone has a more polished version. Your version can be procedural or object oriented. #! /usr/bin/env python3 # This script simulates a monkey on a typewriter trying to come up with one sentence …

Software Development python
Member Avatar for Gribouillis
0
134
Member Avatar for Simon180

Am crating abit of code to save and add a menuitem to main menu but am having a small problem when reloading the saved lobby.dat file when its saved it should be save just click the lobby name is below **Support Group Lobby=56** but it keeps thinking the space is …

Software Development pascal
Member Avatar for SalmiSoft
0
155
Member Avatar for Rahul47

Hello people, please have a look at following IMAGE. ![new](/attachments/small/4/new.jpg "align-left") What I Wish to achieve is extract the select item and display it into a messagebox or say do other actions. I want to extract that particular selected ITEM ..say E101. Thanks.

Software Development vb.net
Member Avatar for tinstaafl
-1
4K
Member Avatar for JOSheaIV

So hopefully the title makes a little sense, but I'll explain a little more. Currently I am developing a program at work that is designed to query a SQL database for results. The code is meant to be stand alone, a single .exe that can be run on any machine. …

Software Development assembly sql
Member Avatar for JOSheaIV
0
344
Member Avatar for Adami

Hi, I wrote the following program: #include <stdio.h> #include <stdlib.h> #define TRUE = 1; #define FALSE = 0; static int *arr; static int size=0; void createSet() { arr= (int *)malloc(sizeof(int)); size=0; }/*createSet function*/ void putInSet(int num) { int *temp; size++; temp=(int *)realloc(arr,size*sizeof(int)); if(temp!=NULL) { arr=temp; } else { printf("Insufficient amount …

Software Development c
Member Avatar for Maritimo
0
1K
Member Avatar for Tensigh

I'm trying to write code in VBA in Excel that opens a desginated directory, finds all xls and xlsx files and then converts them to csv. I found two sets of code that do one or the other perfectly, but I can't make it work. I'm sure I'm just missing …

Member Avatar for Stuugie
0
5K
Member Avatar for YakuzaJevin

I want to arrange numbers from highes to lowest ( you will input the numbers first e.g 1,2,3,4,5 ) and it will be 5,4,3,2,1 Thanks!

Software Development vb.net
Member Avatar for Mark Anthony_2
0
696
Member Avatar for Roger_2

thank you all of you for the help i really appreciate it. i have a hopefully quick question, is this the correct syntax for adding an integer to a buffer: " add dword [userScore], 6 " or do i have to convert the userScore buffer to integer then add and …

Software Development assembly
Member Avatar for Roger_2
0
244
Member Avatar for mappersas

I could use some assistance My final project in a python class is to calculate the distance between 2 lat/long points. My code is really just managing the input & output portions, while using existing code (properly credited) in a function to do the actual calculations. I've got it working …

Software Development java javascript python
Member Avatar for Peter_21
0
6K
Member Avatar for Farid_1

please help!!!!! I wrote this program to calculate addtition and subtraction of two large numbers (maximum 100 digit) it won't work for minus numbers :( i know it have problems but i couldn't fix them,please help me for fixing this :) #include <stdio.h> #include <stdlib.h> int main() { int i,d=0,la,lb,max,ia,ib,ix,iy; …

Software Development c
Member Avatar for Farid_1
0
213
Member Avatar for chrisjordinsky

Hello friends, I am trying to work on a project that dynamically allocates memory when needed for a string array. I just keep getting memory faults when reallocating memory but can't find any thourough tutorials on realloc besides the man page. So basically, I malloc 201 character spaces in an …

Software Development c
Member Avatar for chrisjordinsky
0
189
Member Avatar for shahera.arafat

hi everyone :) I want a new questions on Hash functions and graphs >>like what process can we do on it !! any code ideas ? because I have an exam (data structure) so I want to study new ideas thanks ^_^

Software Development c++ data-structure
Member Avatar for shahera.arafat
0
114
Member Avatar for antonymatoi

hello, plz assist in this: Assuming i have a sourcecode for example for developing a stock management system, how do i edit it to suite my problem?

Software Development vb.net
Member Avatar for Reverend Jim
0
66
Member Avatar for n0tS0av3rag3

I am doing this assignment in my Java class. I have never done any programming in my past so I am a complete beginner. I have typed up a program that will ask for employee name, the hourly rate, and the number of hours worked. The program needs to run …

Software Development java
Member Avatar for JamesCherrill
0
139
Member Avatar for Cort3z

Hi. I am trying to make a script that will print out numbers in rapid succession after working a little with them. The script needs to write them in the console one after another (next line). The code works just fine when I do not utilize multi threading, but when …

Software Development python
Member Avatar for Puneet_1
0
16K
Member Avatar for kayleigh0411

My program compiles with no errors, but when I try to use it, the results do not show up and there is an error. Please help!!! import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.*; public class RetailSales extends JFrame { // declarations Color black = new Color(0, 0, 0); Color …

Software Development java java-swing
Member Avatar for kayleigh0411
0
334
Member Avatar for Programmer592

Hi. I'm making a program somewhat like Siri except through text boxes not voice command. On my form FormMain I have two text boxes named TextBoxInput and TextBoxConversation. I also have two buttons named ButtonStart and ButtonEnd. Here is my entire code for FormMain so far: Public Class FormMain Dim …

Software Development vb.net
Member Avatar for Programmer592
0
186
Member Avatar for Weejin

I need to write a program like this Sample output: Please enter a number(Less than 8 digits): 1203021 There are 2 zero (0) in this number I dont know how to write a formula to count the 0 inside number please teach me.

Software Development c++
Member Avatar for Rafiii
0
152

The End.