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...
For the following code example, IE does not stretch the image all the way to the right, while other browsers do. How can I fix this to work as it should in IE too?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>...
P.S. I just realised that kaht's suggestion of deleting the display:block from the product-tabs li a attributes now fixes my problem, after I fixed the doctype declaration. Sorry if I confused anyone. There are still minor differences between IE's display and Firefox's display of the page, but...
Vragabond, I followed your link and replaced my doctype with the following one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Unfortunately, this did not fix my problem, and IE still leaves an extra line between links in the product...
I don't understand why IE would only warn me about Javascript in a local page and not one online. It seems to me that a page online could do a lot more damage to me than one located on my hard drive. As for doctype declarations, I really have no clue if I did that right. I mostly just copied...
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.