I have a database of people and their money contributions. I have 6 columns to keep track of individual contributions, and one column called TotalContribution. I want to write a query that would set TotalContribution equal to the sum of the 6 contribution amounts for each person in the table...
I have VB code which writes to an Excel file and uses a SaveFileDialog to allow the user to select the file name and location. If the file aleady exsists, it gives two warnings:
File <filename> already exists. Do you want to replace it?
(Yes / No)
The user clicks Yes, and then this one pops...
I want to strip the filename off of a path like so:
c:\directory\path\filename.ext
becomes
c:\directory\path\
I couldn't find a premade function in VB to do something like this, so I'm trying to write my own function below. It searches the string backwards for the first instance of the...
Jebenson, your suggestions worked, but now I have an even worse problem... Excel now fails to load my toolbar containing this code! I got some error message; I can't remember what it said and can't reproduce the error, but I think it was something about a process not being able to disconnect...
The Application namespace doesn't appear to have a DoEvents() method. System.Windows.Forms doesn't have a Count property or anything that looks like a count. Application doesn't have a Forms or OpenForms in it. I read something about a forms collection, but I can't find that using...
Hi, I'm just learning VB, and I'm coding an Excel add-in using VSTO. I'm trying to show a form, wait for the user to click OK on the form so it unloads, then continue execution from the function that called the form. I did some searching and found the following code which is supposed to...
I have some Java .class files from an acm library, and a program which imports acm.graphics.*. Where on my computer should I save the library files so the program doesn't error out in compiling the import line? Do I have to set of classpaths or something to make it work also? I'm using...
Sorry if this is a bad question, but I'm trying to implement some mutual exclusion between processes in C++. I'm aware of the acquire() and enterCriticalSection() functions which are supposed to accomplish this, but I get an error saying these functions are undefined when I try either of them...
Well I've implemented the shared memory, and it seems to be working fine, but now I've discovered another defect - each process is running through and completing its execution before the next process is created! They should all be running simultaneously; that was the point of my experiment...
I'm trying to create a simple C++ program that uses fork() to create three processes which work together to calculate the square roots of all integers from 1 - 100. Each thread is supposed to read a common int, print out its root, and increment the int. My problem is I don't know how to get all...
I have an unordered list of links to different pages, and each list item has an "onmouseover" attribute that triggers a Javascript function mouseOver(prod). This function changes the src of the main image on the page to a different image file, depending on the value of prod. So the user can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.