64,152 Solved Topics
Remove Filter ![]() | |
i need to create a unix timestamp in milliseconds like 1319031463499 to post to an web service. tried all sorts and cant get it. i have googled and keep getting strange years? | |
I am looking for the a simplest for of code where I can add some items to a listview. i have 4 text boxes and 4 columns in a listview.. what could be the code to put 4 values as a single row in list view.. i managed to put … | |
I'm working on a custom textbox control that can "filter" out inappropriate input. The filter property can be: None, Numerical, LowerAlpha, UpperAlpha, Alpha, AlphaNumeric, Symbol None would function like a normal textbox Numerical would be any number key (1,2,3...) LowerAlpha would be any alphabet character as long as it is … | |
![]() | Hello How i can read the motherboad model using code in vb? I write a program in ms access and i want to read/confirm the motherbord model on startup. Thanks in advance |
I current have a column in my database called ConveyorNumber, which could be something like CMD1234, CMD1256, CMD1136 etc. I also have a column called Asset_type which relates to the conveyor number. So depending on the conveyor number the asset type will change, its a description of the conveyor type. … | |
Hi All, I'm trying to bind a textbox to a listbox's selected.Content properties. The listbox displays the items as designed in the datatemplate. But I can't get a textbox to display one/any of the selectedItems properties. [B]DataTemplate[/B] [CODE] <DataTemplate x:Key="dt_Afloeser" > <Border BorderBrush="Black" BorderThickness="0.5" CornerRadius="2" Margin="2,2,2,2"> <DockPanel HorizontalAlignment="Center"> <TextBlock Name="navn" … | |
Hi all, My program is proving Kaprekar's Constant - 6174. To do this I will need to store values exactly how they come out without losing any preceding 0's which int has a habit of cutting off. For example: Number to store exactly: 0147 Int stores: 147 A googling session … | |
Hi, I am now try to fixing the error in my update form but I still cannot find where is it. Can anyone help me with this problem? There is no error occur but the form cannot update to database and also appear the blank form. These are my code … | |
Hello I need to create a pdf doc which will look like the word doc attached, and have to use php to do so. In the doc, the blue texts will need to be filled from data fetched from table User in mysql, and the Autofill part as well will … | |
I have to run a shell script and store whatever is performed in it into a log file. the path can be altered for the log file. how can i do that ? | |
Hi, Please help me how to pass value from database to a variable. This is my query: [CODE] Dim it As String = "Mouse" Dim itNo As String SELECT * FROM tblITEquipmentName WHERE equipmentName LIKE '" & it & "%'" [/CODE] I would like to get the ItEquipmentNo and pass … | |
Hey all (who see this), I am currently writing a Login Script, and I am having trouble making StreamReader read a specific line in a text file. This is what I have so far (not the entire script, just the reader lines): [CODE] Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) Dim … | |
Ok when I use gcc (all th time) the program it makes in c++ with debug on is around a megabyte when off it is around half a megabyte when working with c with debug on it around 50 k with it off it's at about25 k this doesn't seem … | |
I make a program that reads a file and then it stores the information in two char.The problem is related to the char Elements and symbol. What is causing errors in my program? Thanks in advance. [CODE]#include "stdafx.h" #include <iostream> #include <fstream> char* Elements;//The problem char * symbol; using namespace … | |
I hope this hasn't been discussed before. I searched but couldn't find a thread for this. I have an input (type="text") with some default text telling the user to enter something in the box. The input tag includes an onmousedown event which runs javascript function to clear the default text … | |
Hi, I am a beginner so bear with me. I have an assignment in which I have to create an array with numbers and then have a loop with condition to check in which order the user has inputed the numbers. Asc=1, desc=-1, other=0. This loop isn't working, i know … | |
I have a large number of files that begin with numbers (e.g., 10admin_boundary_x) and would like to rename the files so that they do not begin with a digit (e.g., admin_boundary_x). I am working with shapefiles (.shp, .shx, .dbf, etc) and thought a python script could save me some time. … | |
Hi. I'm making a form with some fields. Once the form is submitted it updates the page with a new div containing the data entered without refreshing. Im using jquery form plugin. What I'd like to achieve is the new div(.record) to .slideDown. I guess I need to somehow specify … | |
[CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; string constestantName(istream &); //Calls the the input file from main() by refrencea and returns the name of the contestant void getJudgeData(istream &, string, int); //gets the scores from starsearch.dat and stores them in five veriables void CalcScore(ostream &, string, … | |
Can anyone see anything wrong with this statement? [CODE] CREATE OR REPLACE VIEW V_DEPT_AMOUNT AS SELECT DEPTNO AS DNO, DNAME AS DNAME, MAX(AMOUNT) AS MAX_AMOUNT, AVG(AMOUNT) AS AVG_AMOUNT, MIN(AMOUNT) AS MIN_AMOUNT, SUM(AMOUNT) AS TOTAL_AMOUNT FROM DEPT D, EMP E, PURCHASE P WHERE D.DEPTNO = E.DEPTNO GROUP BY DNAME, DEPTNO; [/CODE] … ![]() | |
I'm trying to compile this simple dot program with C++ that uses OpenGL. I made a struct GLintPoint to hold just points x and y. It seems I didn't delcare the struct according to the errors. [CODE]#include <GL/glut.h> #include <stdlib.h> #include <time.h> struct GLPoint { GLint x; GLint y; }; … | |
[CODE]#include <iostream> #include <string> using namespace std; //char inventoryRequest = 'i'; //Function Definitions. void exitGame(); int playGame(); int main() { //Menu Text. cout<< "\t******Menu******\n\n"; cout<< "Please choose one of the following:\n"; cout<< "1 -Play Game.\n"; cout<< "2 -Exit.\n"; int choice; cout<< "Choice: "; cin>> choice; string name; switch (choice) { … | |
Here's what I want: [CODE]$practice_name = preg_replace("/\([^\)]+\)/","",$practice_name); echo($practice_name); [/CODE] But that does not work when I reference the variable then. This however does work. [CODE]echo(preg_replace("/\([^\)]+\)/","",$practice_name));[/CODE] But I do not want to update my code every time I reference $practice_name, I only want to update where the variable gets assigned. | |
I have searched high and low and cannot find anything that I understand on how to pass data from one form to another in c#. I am completely new to this language and I felt like I was really grasping it up until now. The situation: I have a project … | |
hello people. how are you all doing? my problem is i have been programming in c++ for almost a year now but i have always used windows with microsoft visual studio and dev c++ but now i discovered that programming in ubuntu is much more fun couz it is way … | |
Hi everyone :) I am working on a small error message, but i can not seem to get it to work correctly. Basically, what I am trying to do, is check the account balance field from a mysql database against a variable of $smsnum smsnum is automatically populated based on … ![]() | |
write a java program that prompts the user to input and integer and then ouputs both the individual digits of the number and the sum of the digits. This is what I have but it is not working when I input a negative number. Why? Need help! import java.util.*; public … | |
Hello everyone I am a college student learning c++ and I am not understanding why you put a "For loop" inside of another one. What advantage does it have and what can you use it for. For example: [CODE]for (int i = 0; i < 5; i++){ for (int g … | |
Hi. I have to write a program that solves the Knight's Tour in C++. The Knight's tour is where the Knight Chess piece has to move to every space on the chessboard only once. I am new to programming and I'm having trouble figuring out why my program has stopped … | |
Hey I'm Dean I'm taking my BSc from distant learning so sometimes it takes forever to get the teachers or other students to help me on stuff I'm stuck on anyways. I'm given a task to show a quiz with a little clock running and to end the quiz and … | |
Hello there! I was tired of having to edit my hosts manually, so I just started a small app that will open a nice user interface to it for me. Most of the code is done. It opens the hosts, edits, saves, has cut, copy, paste, undo and redo functions. … | |
my problem is highly conceptual problem. when i write: node *new1=malloc(sizeof(node)); it works properly. but when i write : node *new1=malloc(sizeof(node*)); it starts giving errors. // node is the structure having a integer and pointer to itself. | |
i want to write an algo about stack example.. that is, ""When a person wear bangles the last bangle worn is the first one to be removed and the first bangle would be the last to be removed. This follows last in first out (LIFO) principle of stack."" how to … | |
Hi All, I am new to C++, I am tring to generate the random number from 0-99, and save it to a matrix array with the size of 10x10. Below is my code, the resule comes out funny. Can you help to see what goes wrong? [CODE]#include<stdio.h> //Header file #include<stdlib.h> … | |
Hello again I'm dealing with a problem in VB6 I have the swedish version in the national enverionment as default and the [U]LabelDatum.Caption = StrConv(Format$(MyDate, "dddd dd mmmm yyyy"), vbProperCase)[/U] is saying SÖNDAG in the first form but I will change that with some code in the form2 that the … | |
Hi all, I did some basic method overloading program, when I run the bellow program i got output as int long but expected is short long.. can Any one explain me My code is : [CODE]public class MyClass { public static void disp(Long n) { System.out.println("Long "); } public static … | |
hi, i'm trying to make a simple program to calculate the area and perimeter of a circle, but there's a little problem, whenever i enter a floating point number as the radius, like say 2.5 it calculates as if i entered only 2(without the .5) ( i hope that makes … | |
Hello guys, I found a lot examples about this one but I still don't have it all working. So the thing is that I have a button in my C# web application called Export to Excel. The functionality should works as if the button is clicked - it just simply … | |
![]() | The last do..while loop only prints the 2^n of the number entered and n is user input. It does not print all 2^n from 1 to what ever value user inputted. [CODE]/** * * * @author * @version */ //import Scanner utility import java.util.Scanner; public class Loops { public static … |
Hello in a case there I wan't to change letter in an index from 0- 28 to just 0 - 26 it's commandbuttons, and the 3 letters should be dissaabled, the code is in swedish just now, but I will change that in language settings to english letters. and how … | |
How can I check if my program was launched from the command line or from windows explorer? | |
Hi Guys, how to call one shell script from another script inside a loop ? any suggestion most welcome. Prakash | |
hi, i'm new to vb.net.is it possible to link item in drop down list to image? for example if i click "computer" in the drop down list, the image of the computer will appear. sorry if my question sounds silly. i'm really a newbie in vb.thanks for ur help. | |
Dear Daniwebbers, I have a problem regarding the calling of methods on a protected parent object from within a child object, the protected parent object being a child object of the same class. I have a class HostileArea, wich has a "protected DungeonRoom[][] dungeon", DungeonRoom being a child of HostileArea. … | |
Hello to all, I've designed a website to provide Software and all the data is coming into the gridview.The entries in database are...... [B]SoftName : [/B] Name of the software [B]SoftType : [/B] Type of the software (like windows,mac etc.) [B]SoftUrl : [/B] Path of the software file in the … | |
hey Guys, im creating a clas that is to be used in a HashMap to map phone numbers to name. for example : map.put( new PhoneNumber(207, 8269600, 260), “Paul”); [CODE] public final class PhoneNumber { private final int areaCode; private final int number; private final int extension; public PhoneNumber(int areaCode, … | |
Hello I just read a document using PHP and I need to skip the first 58 lines of that document and then start sending the data that follows from those lines to my database. How do I go about skipping the first 58 lines of the document. I really need … | |
Hello there! anybody can help me how to execute this application? Thanks you very much! Here's the application goes: Write an application that contains four command buttons. The command buttons should be blue and have boldfaced, italicized caption that read change color, change bold, change height, change width. When the … | |
Ok I'm working with a program that uses addresses and with all of the Interesting charecters (. / \ and spaces) I need tO get a line of characters. I know how to do this with ifstream but how would I do this with plain old cin? | |
hello all In a cells of a datagridview I place a gif image name new.gif . I can show it immediately after the the form load even I try to print this datagridview cell(0,0) value which is an image name new gif: Object imgobj= dataGridView1.Rows[0].Cells[0].Value; but then I do not … |
The End.