64,152 Solved Topics
Remove Filter ![]() | |
im making a program that gives you the age of the person that enters there date of birth the code i got at the moment is: Private Sub Command1_Click() Dim age As String age = Month(Now) - Text4.Text If age < 0 Then age = 1 Else age = 0 … | |
Can anyone tell me what is wrong with this code? [code] Dim current_date As String Dim filename As String Private Sub Form_Load() Dim path As String current_date = DateValue(Now) current_date = Format(DateValue(Now), "YYYYMMDD") Debug.Print current_date filename = "Daily SMS Backup " & current_date & " 200.sql" Debug.Print filename path = … | |
Hi Guys. Finally i can read excel, thanks to all of you who responded. Now i though its easy as i think to extract from data table, here im searching for a specific record on excel then i need to select certain columns on that row of that record, my … | |
hi guys.. kindly help me in this one... i'm creating an inventory system.. i have a problem in their Item No. format... i use maskedbox... my mask is ##-####### ... im using a barcode reader..their current Item number has only 4 digit... i want the output will become this one … | |
Hi guys, I'm habing a problem with an access database i'm trying to fill programmatically with vb.net. I have a datatimepicker to set a date with a custom format like "dd/mm/yyyy hh:mm" If I insert this date in my access database the days and months are switched (mm/dd instead of … | |
Hello all. I am currently working on creating a program of a Checking Account and Savings Account. I am using my input file for deposits and withdraws. However, for my deposit and withdraw functions, I am unsure what to put in it. For those functions, am I suppose to read … | |
Hello all, Whenever I create a new form in a form while pushing a button. Every time I push the button and new form created. I dont want this. Example : If form2 exist and OPEN so bring it to front. I cant arrange it, I tried bringtofront or this.Close() … | |
Hi all! Well, again I find myself stuck in a silly situation. I've found some more settings that seem to baffle me. First off all, why can't I set the Right property of a control? Example: [CODE] PictureBox ExamplePictureBox = new PictureBox(); ExamplePictureBox.Right = 50; [/Code] This returns that "Property … | |
Hi to all, Hope you all are fine.I have a javascript to check whether java is installed or not on your system.The code is [code=JavaScript] <body> <script language="Javascript" type="text/javascript"> if(!navigator.javaEnabled()){ alert('Enable your java to expeirience this java enhanced page or\n try install it...'); location.replace('http://java.sun.com'); window.open('instructionsforintallingjava.html'); } else{ document.write('<applet watever></applet>'); } … | |
I would like to be able to open a php file and edit it from a browser window. We need to easily add website to this file. We will have a hidden, password protected area that we will use to edit this file. Is there an easy way to do … ![]() | |
I'll post my code after my questions. 1. Near the very end, I have DisplayIntroMessage() called for the event that the user desires another order. Is this all that I need to do to restart the process? 2. If that is all that is needed, what is the easiest way … | |
New to JavaScripting and copying information out of a book. I understand the concept of the code but I do not know why it is not working. I can type info in both boxes but the information does not add. Tried it in three browser FF, IE, and Chrome. [CODE]<html> … | |
I have worked with maps before and I have come to the point where I need to save a map when I quit an application and load it when I open application. How can I achieve this goal? Do I have to save it to a file upon exit and … | |
I'm in the process of writing a 2D physics engine in Java, and am trying to figure out the algorithm for the most basic of all physics tasks: Object collision. Detecting collision between two circles is easy: check if the distance between their centers is less than or equal to … | |
I tried searching and couldn't find anything, so I'm sorry if this has been posted before. I need help aligning output at the command line. I want to make even columns, but can't figure out how to do it. Attached is a screenshot of my current output. I want the … | |
I know this is a kind of broad question, but I have been having a hard time in general knowing when to put what call parameters into what functions. Does anybody have any good tips on when to know when to use a void function verses a bool or int … | |
well, this is my code: [CODE] while(!isdigit(c) || num.length() < 4){ cout << "Enter your four digit pin: "; cin >> num; for(i = 0;i < num.length(); i++){ c = num.at(i); if (isdigit(c)){ pin[i] = atoi(num.substr(i, 1).c_str()); } } if(!isdigit(c) || num.length() < 4){ cout << "Invalid Pin." << endl; … | |
I'm having a problem with creating my own stack class and implementing it in a postfix calculator program I made. I was trying to make the stack.h file, but it keeps telling me stack is not a template [CODE]#ifndef STACK_H #define STACK_H #include <iostream> using namespace std; template <typename T> … | |
I am relatively new to c# and am making a 2D physics engine as a fun project to learn the language and the .NET environment. I am making a form that can be used to modify the number of objects. Unfortunately, I cannot find a way to change the length … | |
![]() | I'm trying to sort an array which contains objects, but have hit a wall. I have a number of feeds that are placed into objects (WM). The feeds are placed in the order that they're loaded. I want them to be ordered w.r.t. pubDate. I'd rather not recode the whole … ![]() |
Hi all, Just wondering if anybody can spot the syntax error with the below. [CODE] '<button type="button" onclick="window.location='bookview.php?id='. $row['bookingref'].'&hn'. $row['hotelname'].''">Book Now</button>' [/CODE] It works fine when I just append one row to the URL like this [CODE] '<button type="button" onclick="window.location='results.php?id='. $row['proposalid'] . ''">Book Now</button>' [/CODE] The button only stops workin … | |
The question given like this using the CreateProcess () in the Win32 API. In this instance, you will need to specify a separate program to be invoked from CreateProcess(). It is this separate program that will run as a child process outputting the Fibonacci sequence. Perform necessary error checking to … | |
Hi all, All right, here's what I am trying to achieve but have no idea how to do it: My site requires users to login and every page is password protected. As part of preventing hacking (to a small extent, though) I am trying to [B]TEMPORARILY[/B] disable the user's account … | |
How would you create a validate statement that shows a message to the user if they enter a value that is 5 years or older than the current date, I have the checking of format for the date if its entered correctly. Currently I have this to valid the format … | |
i want to share one finding that i found today and am pretty surprised. Although class types are passed by reference, nested classes are not. Form1.cs : [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace nestedClassRequiresRefKeyword { public partial class Form1 : Form … | |
hi i made a login page and created some user. now i like to make a sql queries with that user name. suppose username joe so he enter joe as a user name then login page sent to another page where sql qeries will be execute for that user: joe … | |
Hi Ive been working with PHP, AS3 and some javascript for a while now, and want to move into something that allows me to develop desktop apps... I considered Java, but have become used to PHP's loose typing or whatever the technical name is, and so after some investigation Python … ![]() | |
Hey all. I'm new to this forum and Python. I need a program that can search an inputted keyword through all the files that end with the ".txt" extension inside a given folder. The output should include the name of the files which contain the keyword, the sentences which contain … | |
I am trying to combine two multi-element dictionaries but am running into a problem. From the example below, what I expected was the dictionary x to contain all three unique combinations. What seems to have happened is that the y dictionary overwrote the x dictionary. Am I just using this … | |
I have this script: [url]http://snipplr.com/view/19692/g-or-y-search-hilite/[/url] but it won't search for chars like ')' . How should I adapt it? Thanks. | |
I return with another perplexing issue that I just can't figure out, a generic and unhelpful"std::bad_alloc at memory location" error. Before I get to the code, some background... Having finished my uber-awesome 2D engine (thanks entirely to you guys) I decided it was time to break open the can of … | |
Hey all, I am fairly new with C++ and I registered here to ask for suggestions on how I can create my project. I proposed to my professor that I will create a scientific calculator with "additional functions". By additional functions I mean like a SC with that can solve … | |
I'm having some trouble getting the times to show up correctly. inputTime is running fine, but neither displayStandardTime nore displayMilitaryTime is displaying. I've been playing with this for a couple of hours and can't figure it out. I'm probably missing something small, but it's driving me nuts in a big … | |
Im having trouble fixing this error on my program. Any help would be greatly apprecitated. [code=c++] #include <iostream> using namespace std; int main () { char choice; cout<<" Is it after 12 noon? (y/n)" <<endl; cin>>choice; if (choice == 'y') cout<<" Good afternoon, world!"<<endl; else if (choice == 'n') cout<<" … | |
Okee here my problem When i create a button in the designer , i got options in the properties window for putting a Image in the button and even a ImageAlign But i want to change the image at runtime I looked at the button members , but i cant … | |
Hey guys, I have been working on some code and have struck a problem, I tried to make the code as easy as possible to edit at a later date. The issue comes when I include a config file from a directory for a certain page, this config file decides … | |
Hello friends. I'm very new to C and am still learning how to do basic stuff. I got the code to work in C++ (which I'm much more fluent in) but I'm having trouble converting it to C code. [code=cpp] #include <iostream> using namespace std; double factorial( int n); int … | |
Hi friends, I am doing a small project.In that the user can order for some products.when the user clicks the oreder_submission Button one conformation dialogue Box should appear with the message of confirmation with two buttons "Yes" and "no". Pleae give me the code in C#. | |
What is the best approach of writing java code in following 2...... ? What happens at jvm level in each case ? 1. [ICODE] for(int i=0;i<10;i++) { MyClass m = new MyClass(); m.doSomething(); } [/ICODE] 2. [ICODE] MyClass m; for(int i=0;i<10;i++) { m = new MyClass(); m.doSomething(); } [/ICODE] | |
Hi all! Okay i've been attempting to create this segment of code which is supposed to read from the database; based on search criteria entered, then load them into a form for viewing/editing. I am able to read the concessionID from the database; however i am then unable to select … | |
Well, that is exactly what I want to do. To help you a bit more, I want to create a toolbox that has an auto-hide feature so my application's users will have the option to do actions from there. To be even more specific, I want to create a built-in … | |
Hello guys. After some time searching around the forums for a thread about an e-book for crash course from C++ to Java and no luck I decided to post a thread about it. So my question is,does anyone has or knows such book? Thanks in advance. | |
I just found this example in my book. After running the program in will only ready the first line of my file. Ex. inside my file "PhoneBook.txt" Mine 12345678 Hers 1234567 Them 123456 It will only read "Mine 12345678" ignoring "Hers 1234567 and Them 123456" How will i'll make this … | |
#include <iostream> #include <stdio.h> #include <fstream> #include <string> using namespace std; int main() { int number_Of_Lines_To_Print_From_End=0; char file_name[20]; streampos length; cout<<"enter file name that needs to be opened\n"; cin>>file_name; cout<<"enter number of lines to print from end of file\n"; cin>>number_Of_Lines_To_Print_From_End; fstream file; file.open(file_name, ios::out ); if(file.is_open()) { cout<<"the file opened\n"; … | |
hello to all, I am using MS SQL 2005. I have 3 tables, COLLAGE, USER, STUDENT I am providing username & password to collage as well as students. I wanted to assign Foreign Key to 'username' in both tables College & Student. i have done, 1. right click on username … | |
hello all, i am new to ajax.. unfortunately, i was given an assignment before i complete ajax.. i need help, someone pls direct me where i can learn to solve the following thing!! Consider a web page has 3 frames, the top has the header, the left has the actions … | |
i created a table with a files with auto number in mysql. i added 15 raws of data i deleted some added data (say 6-15) when i add data again, auto number starts with 16. how can i make it 6? (i hope u get the point) | |
Here is my code: [ICODE]#include <iostream> #include <string> #include <iomanip> #include <cmath> using namespace std; int main() { const double e = 2.71828; double t, f, n, B, VoltageGain; cout << "Please enter the time in hours the culture has been refrigerated: "; cin >> t; cout << endl; while … | |
In unix if you create and open a file by using 9 digits numbers in the open function it seems to work but in C++ you only don't have a parameter to do that rather you have ios_base. Just wondering if there are owner,group and world settings that can be … | |
O_RWDR opens a file for read and write and pmode allows you to specify permission for each of the users? WHAT DOES IT MEAN BY WHAT PMODES AND O_RDWR ARE AVALABLE ON YOUR SYSTEM? CONSIDERING I AM USING VISTA I HAVE NO IDEA. I HAVE THE ABILITY TO READ AND … |
The End.