199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for midnite11

Hi, I need to fill a toolstripcombobox with dates. The values in the toolstripcombobox need to be sorted by date. The database field that I am pulling to fill this toolstripcombobox has the following fixed format: 201201, 201211. So, I first need to convert the retrieved values from YYYYMM to …

Member Avatar for Icone
0
190
Member Avatar for dinhunzvi

i have a MySQL table with the following columns: employeeID, firstName, lastName, gender, salary. whenever i insert a new record for this table i want to be able to retrieve the employeeID of that record. how should i write the commands in VB.Net

Member Avatar for Icone
0
1K
Member Avatar for babbu
Member Avatar for akasekaihime

Hello good evening to all of you! I know this question is basic but I am really having a hard time doing it. I am a creating a Employee information system. My dilemma is I want to view all the informtion of all the employees from the department that I …

Member Avatar for Icone
0
147
Member Avatar for jhedonghae

i want to call items in a database based on a date range...can someone help me with this..i really don't have any idea how

Member Avatar for Icone
0
167
Member Avatar for Vingklippt

**Okay, first of all, I'm quite new to programming at this level. I have managed to create a dynamic administrationpanel for updating the current menues of a restaurants homepage.** ISSUE - The more posts in the table, the longer the space between the page top and the databasetable gets. I’ve …

Member Avatar for Vingklippt
0
252
Member Avatar for SMode55

I wrote a very simple validating script and I can't see what am I missing it just won't run at all <title>Untitled Document</title> <script src="http://code.jquery.com/jquery-latest.js"></script> <SCRIPT type "text/JavaScript"> (function checkform(){ var user = document.getElementById('user').value; if (user.lenght<5) { $("#username_error").html("Please enter a Username"); return false; } else {return true} }) (function checkuser(){ …

Member Avatar for SMode55
0
178
Member Avatar for الوليد

hi please help me in this queation Q)write programe to open any file in your computer but with password to opean this file? pleassse i want the answer after one week because the last date after one week.

Member Avatar for Ancient Dragon
0
134
Member Avatar for Darshan Belani
Member Avatar for revathi.sampath.90

i have two textbox..TimeInTextbox that contains time in for example(8:00 am) and TimeOutTextbox that contains time out for example(5:00 pm), i want to add TimeInTextbox and TimeOutTextbox to get the total working hours but how am i suppposed to do that?

Member Avatar for Icone
0
124
Member Avatar for Melly3

import random as r def main(): roll1 = r.randint(1,6) roll2 = r.randint(1,6) point= 4,5,6,8,9,10 sum= roll1 + roll2 print("phase 1") print ("You rolled:", roll1, "and", roll2) if sum == 2 or sum== 3 or sum == 12: print("Game Over. You lose" ) elif sum == 7 or sum == 11: …

Member Avatar for snippsat
0
3K
Member Avatar for Secone

I have a template in a 1-file .h file, and I need it to be adjusted and modified to work properly with only a partial amount of the items in it used. The testArray.cpp file I include is how I test if it works properly. As it is now, it …

Member Avatar for Secone
0
186
Member Avatar for <M/>

How do I generate numbers in php that display (for example) Lead Number... To picture this... It'look like this (phone numbers are random): Lead # Name Phone 1 Bob 911 2 Jack 119 3 Joey 191 4 Ashley 9110 5 Michael 0119 So how do I create that column on …

Member Avatar for <M/>
0
119
Member Avatar for alexandra.hoops.3

I have to write a program that asks the user how many pumpkin weights they have, and the reads that many pumpkin weights, printing each weight with two decimeal points and a comment and displays data about them to four decimal places. I need to find the average weight, maximum …

Member Avatar for ThePythonNoob
0
589
Member Avatar for shriram.pendse

Hello Stallwarts, I am making a simple VB.net HMI application. I have dlls which give me functions to read / write registers from PLC / controllers. Now How do I do this ??? One threads keeps communicating with devices with these read write functions. Another thread looks after GUI and …

Member Avatar for Reverend Jim
0
112
Member Avatar for AmrMohammed

Greetings, As the thread title said I want to know how to create a setup file. I know the basics of creating such setup file but I want to know how to create an enter serial number windows form, how to ensure that the entered serail number is true or …

Member Avatar for AmrMohammed
0
208
Member Avatar for HunainHafeez

see i am using this mode of SQLDATASOURCE configuration ![154](/attachments/small/3/154.jpg "align-left") and now on the basis of this sql statement i want to generate UPDATE, INSERT, DELETE queries, especially UPDATE and i tried my best to do it but can't. this thing is quite possible in the mode given below …

Member Avatar for HunainHafeez
0
398
Member Avatar for Bogy007

I am looking for a way to write a code implementing the Cholesky decomposition with only one loop (on K), utilizing outer product. Not sure how to go about this. MATLAB can do it, but i have to use c++. I have looked at parallelism but that is over my …

Member Avatar for Bogy007
0
259
Member Avatar for sheushen

I need to sort the display by name in alphabetical order. How do I do that? public class Node { String name; int age; String position; int salary; String num; Node next; Node() { name = null; age = 0; position = null; salary = 0; num = null; next …

Member Avatar for Taywin
0
205
Member Avatar for BLuv

Hi everyone, I am brand new to Java and I like it a lot so far. I am very stuck on an assignment for school that I need help with. We are just learning about method invocation, how to write and call methods in Java. My program should take user …

Member Avatar for Taywin
0
185
Member Avatar for rotten69

Hey everyone, I haven't recently done my research on this yet. I can recall from memory that I did some short research on storing images in a database and also had some questions answered in the forum about it. Additionally, I was told it is not a good practice to …

Member Avatar for diafol
0
164
Member Avatar for Smeagel13

Field defined as DECIMAL(5,2), trying to INSERT (250.00). When query is performed remotely to DB server, it fails with 'Out of range value for column...', when query is performed locally on the DB server, the query works. The query works remotely when the value being inserted is 226.24 (yes, that …

0
92
Member Avatar for koros.komen

Hi Prows,am creating a farm produce monitoring system using mysql and php.The database contains several tables of different produces that have the similar fields.The admin is supposed to update each table with different values.How will these datas relate. For example,maize field has Product-id,produce-name,location,date,time and mobile number of the buyer.Each table …

Member Avatar for diafol
0
259
Member Avatar for ThePythonNoob

# Advanced game of Tic Tac Toe # Author: Bob # Version: TypeError #****************************** #import modules import random import mcommandline #****************************** class Human(object): def __init__(self): self.hposition = 0 self.hmove = ["X", self.hposition] self.question = "" def makemove(self): self.hmove[1] = input("1-9: ") def question(): question = input("Yes/No: ").lower() class Board(object,Human()): def …

Member Avatar for ThePythonNoob
0
283
Member Avatar for mmcdonald

Hi all, I have a very nasty issue here where SQL values are changing but I haven't been hacked because the changes are just too abnormal. People vote for their servers and every so often the top few servers values roll back. For example at 03:00 a server has 66 …

Member Avatar for diafol
0
179
Member Avatar for OsaidAz

ok, so I have two classes: Ticket and passenger passenger class has 3 data members, and one the the ticket data members is: `private Passenger psmgr;` what I want to do is to access passenger's data member using the psmgr variable how do I do that?

Member Avatar for OsaidAz
0
238
Member Avatar for waqar100

Hi friends i am getting outofmemoryexception, Here is my code which is in italic i have to optimized these nested loops to avoid the exception. I am telling the background here ,I have a condition in which i have Dataset A,Dataset B and Dataset C.Dataset A is parent & the …

Member Avatar for Momerath
0
187
Member Avatar for guerratg

#include <iostream> using namespace std; //class definition class Wage { public: int duration; int price; int calculateWage() { cout<< "To exit program enter -1, to continue enter 1! "; cin>> duration; while(duration != -1) { cout<< "\n\nEnter employee hours worked (or -1 to quit): "; cin>> duration; { if(duration <= …

Member Avatar for BobS0327
0
186
Member Avatar for laian.alsabbagh

The purpose of the following code is to get a random number of 100 nodes and to distribute these nodes randomly in range 500*500 …(X,Y).. this was the first step #include<iostream> #include <fstream> #include<cmath> using namespace std; int main() { const int x = 0, y = 1; int nodes[100][2]; …

Member Avatar for laian.alsabbagh
0
213
Member Avatar for eburlea

Hello. The code below returns an error. Please advise what is wrong with it. Thank you. class Login { private var $good_username; private var $good_password; public function Authentification () { private $this->good_username = "myusername"; private $this->good_password = "mypassword"; } }

Member Avatar for eburlea
0
326
Member Avatar for minitauros

I just started wondering.. I have a bass class, let's say a class called Framework. This class contains a lot of functions and sets a couple of variables that are used inside other classes. What would be the most efficient way to access these variables from inside other classes? Should …

Member Avatar for jkon
0
382
Member Avatar for Limiter

Just a simple question, might sound stupid even. :) If I write a C program that incorporates execv or fork, does it work properly if I run the program on Windows? I heard that they are associated with Linux based system.

Member Avatar for nitin1
0
115
Member Avatar for IcyFire

Is there a way for me to manipulate the cells of a grid layout? For example lets say i have a grid that has 5 rows and 5 columns. Is it possible for me to manipulate the cell at row 1 column 2 using the layout, sort of like the …

Member Avatar for IcyFire
0
219
Member Avatar for overwraith

I am working on a "for loop that finds all the drives on a system that match a given criteria and am trying to accumulate the drive letters into a list(string) which I can then pipe to a command which will do something to those drives. I do not use …

Member Avatar for overwraith
0
227
Member Avatar for clever.forextrading

I created this little application which calculates an average of temperatures based on values given by user. I am trying to create a news switch statement so that for example the average temperature this week was < 10 it would give a message such as "it was a cold week". …

Member Avatar for ddanbe
0
103
Member Avatar for navi18

I have a folder which consists of .doc and .xls files..i want to search a particular file from a folder and display the contents using php code.how to do it?i am new to php

Member Avatar for navi18
0
2K
Member Avatar for rahul.ch

List<? extends Integer> list = new ArrayList<Integer>(); for (Integer element : list) { System.out.println(element); List<? super Integer> list = new ArrayList<Integer>(); for (Integer element : list) { System.out.println(element); For the first three lines as Case 1 using extends it compiles fine. But for Case 2 of next three lines, it …

Member Avatar for rahul.ch
0
2K
Member Avatar for nitin1

i am using masm to write assebmly language codes. can you please tell that how can i change binary numbers to its ascii ? like 10 is given what will be its ascii value ? i know that 30h is ascii value of 0 ans so on. please help.

Member Avatar for nitin1
0
540
Member Avatar for apayn

Hey Guys I have some code problem with my classes. Can anyone tell me what has happened? class Location(object): def location(self, index, desc, lootvalue=0, loot_type=0): self.index = index self.desc = desc self.lootvalue = lootvalue self.loot_type = loot_type self.nuetralmobspawn = nuetral_mob_spawn self.passivemobspawn = passive_mob_spawn self.hostilemobspawn = hostile_mob_spawn def __repr__(self): text = …

Member Avatar for Lardmeister
0
167
Member Avatar for meaganicole

Hi, does anyone know how to add date validation? This is what I currently have: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Calculate_reservation_totals { public partial class CalReservationTotals : Form { public CalReservationTotals() { InitializeComponent(); } private void CalReservationTotals_Load(object sender, …

Member Avatar for ddanbe
0
213
Member Avatar for Gerbiler

I have recently been working on a job with a client who gets their data from county data. The county data is contained in .dbf files. Every year the data is updated and my client will get a CD/DVD from someone containing the county data in .dbf format. Now the …

Member Avatar for Ujube
0
342
Member Avatar for M4rt1985

Ok so i have created a Javascript/PHP/Ajax application. I have a sequence of 6 select boxes. The first is hardcoded in HTML. When you change the selection it sends a variable via Ajax to PHP which uses the variable to query the database. When the second box changes it then …

Member Avatar for M4rt1985
0
192
Member Avatar for emil.rubinic

My program consist of two classes: Form1 (windows form with textbox) and SerialCommunication (class for serial communication). When data occurs on COM port DateRecievedHandeler store the message to indata. public ref class SerialCommunication { private: static SerialPort^ mySerialPort; public: static String^ indata; static void OpenPort(); static void Close(); static void …

Member Avatar for emil.rubinic
0
84
Member Avatar for Jenniferting

Hi guys, so im required to write a programme that will make a table, along with the values and all and im also required to mark "X" at the minimum value of total time A+B (exactly beside the minimum value in the table). I tried using if statement but it …

Member Avatar for Jenniferting
0
229
Member Avatar for lizziekadango

help me out it says in fuction int main, expected primary expression,, #include <iostream> #include <stdlib.h> using namespace std; #define n_file 5 struct record_t { char accname[50]; int accnum; int intbal; int ctbal; int deposits; int deposit; } accounts[n_file]; void printbankaccounts(record_t record); void displayctbal(record_t record); int main() { char buffer[50]; …

Member Avatar for lizziekadango
0
113
Member Avatar for Matigo

Hello everyone I've been searching for help for a long time and still can't find somebody to solve it for me :(, The problem is im not good at explaining it , But here is the problem I'm creating an application in visual basic 2010, and i was aiming to …

Member Avatar for Reverend Jim
0
467
Member Avatar for aerandir.miriel

i got error when making this code. Here is i attach my code and tables: My Tables are =============================== **PRODUCT** **TR_RECEIVE_PRODUCT** >ID_PRODUCT >ID_RECEIVE_PRODUCT >NAME >ID_PRODUCT >CURRENT_STOCK >DATE_IN >STOCK_IN ==================================== ============================================================================= Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim cmd As New SqlCommand Dim connectionString As …

Member Avatar for Reverend Jim
0
268
Member Avatar for ismael ahm@d

Hi Friends, I am trying to send a file via email and upload on a server as well, but unfortunately the file uploaded successfully while attachment sent to email there when i preview or download so it contained error, below following code is: <?php if(isset($_POST["Submit"])) { $to = "abc@gmail.com"; $subject= …

Member Avatar for urtrivedi
0
177
Member Avatar for rakibtg

I am using PHP Simple HTML DOM Parser * [Manual] to fetch data from websites. Now what i wanna do is to remove first three words from all span which has `class="yeah"` from the fetched content So i have implement this code but it has a problem: foreach($html->find('span.yeah') as $xdat) …

Member Avatar for rakibtg
0
232
Member Avatar for tayyabatiq

This code is supposed to write everything the user writes, and keep writing until the user presses ALT key. do{ //declaration string A; getline(cin,A); ofstream file; ifstream file1; //file opening file.open("C:\\Dev-Cpp\\file.txt"); file1.open("C:\\Dev-Cpp\\file.txt"); //file input file<<A; file.close(); file1.getline(B,1000); file1.close(); //file output cout<<B; } while (wParam!=VK_MENU); The problem is, it says: wParam …

Member Avatar for tayyabatiq
0
206

The End.