Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2007 |
| Replies: 11 Views: 4,463 How are you connecting to the database? If you are using ODBC, you need to create a like ODBC element on the new computer.
Hoppy |
Forum: ASP Oct 26th, 2007 |
| Replies: 4 Views: 1,403 Sure, where would you like the contents of the variable (say myHTML) to come from? It could be read from a file, it could be passed in from the old web page.
Regardless of the source, you can... |
Forum: C Oct 20th, 2007 |
| Replies: 7 Views: 870 That's probably because checkprime has unbalanced braces ({}). |
Forum: Visual Basic 4 / 5 / 6 Oct 13th, 2007 |
| Replies: 4 Views: 4,015 Where do you want to get the name of the database from? The choices are to hard code it, (not your favorite obviously), to pass it as a parameter to the application via the command line (not my... |
Forum: C++ Oct 12th, 2007 |
| Replies: 17 Views: 10,242 That code looks just fine to me. But sometimes looks can be deceiving. Are you sure that what looks like a space between "IDM_MY_MENU" and "208" is really a space. I remember once having a similar... |
Forum: Visual Basic 4 / 5 / 6 Oct 12th, 2007 |
| Replies: 4 Views: 4,015 I'm not sure why you don't like the code you have if it works, but just in case you're interested, this is the way I ususally do it:
Dim wrkJet As Workspace
Dim dbProgram As Database
... |
Forum: C++ Oct 12th, 2007 |
| Replies: 17 Views: 10,242 If you want to learn C or C++, I suggest you look at "www.cprogramming.com". I have not gone through the site, but judging from the table of contents, it might be just what you want. Let me know if... |
Forum: C++ Oct 12th, 2007 |
| Replies: 17 Views: 10,242 OK. Frankly, I don't really know what this code is intended to do, because I can't see the entire program. But, I'll try to respond to the questions you have posed.
Firstly, the statement... |
Forum: C++ Oct 11th, 2007 |
| Replies: 22 Views: 7,485 Yeah, you're right. But all of the code except for the cout and cin stuff is just plain C. And whether it's C or C++ sort of misses the heart of the matter. The thing that the original poster needs... |
Forum: C++ Oct 11th, 2007 |
| Replies: 22 Views: 7,485 I told you that my C is a little rusty. It looks like I should have put a ; after the call to getnumbers() and removed the endl. If you want to make those changes and try it again, it should reduce... |
Forum: C++ Oct 11th, 2007 |
| Replies: 22 Views: 7,485 My C is a little rusty, so I might not have gotten the syntax exactly right, but this should work.
#include <fstream>
#include <iostream>
/* Note: I don't think you need all of the #includes... |
Forum: C++ Oct 11th, 2007 |
| Replies: 17 Views: 10,242 If you need help with some code, it would help a lot if you would post an example of the code you are having problems with. Otherwise, I don't see how anyone can help you!
Hoppy |
Forum: Visual Basic 4 / 5 / 6 Oct 11th, 2007 |
| Replies: 5 Views: 2,291 You are still always going to "cancelmessage:". try the following code:
Do
On Error GoTo cancelmessage
comdia.cancelerror = True
comdia.Filter = "*.doc"
comdia.InitDir = "C:\"
comdia.filename... |
Forum: Visual Basic 4 / 5 / 6 Oct 10th, 2007 |
| Replies: 5 Views: 2,291 You might be confused by the fact that the logic following "cancelmessage:" is executed regardless of whether or not there is an error.
The second time through the loop, you may have gotten an... |
Forum: Visual Basic 4 / 5 / 6 Oct 9th, 2007 |
| Replies: 6 Views: 5,007 Once again, "ticketsFolder" IS and object and requires a "Set". This distinction in syntax is kind of a stupid rule in VB, but it's something you have to live with.
Hoppy |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2007 |
| Replies: 6 Views: 5,007 The problem is that the variable named "subjectLine" is defined as a String. A String is not an Object. When you use the "Set" statement, the compiler expects that the thing you are "Setting" is an... |
Forum: Visual Basic 4 / 5 / 6 Oct 7th, 2007 |
| Replies: 6 Views: 2,127 Try this.
Dim myDate as Date
Dim mth as String
Dim day as String
Dim yr as String
.
.
.
myDate = CDate(mth & "/" & day & "/" & yr) |
Forum: IT Professionals' Lounge Oct 4th, 2007 |
| Replies: 2 Views: 821 I've never encountered anything like that. I would suspect that you have a bad keyboard. If you have a desktop, I'd try borrowing a keyboard from some other computer and see if the problem goes away.... |
Forum: Visual Basic 4 / 5 / 6 Oct 3rd, 2007 |
| Replies: 9 Views: 1,584 Dear qpido,
From your question, it is not clear what you are looking for. VB is supported in both Excel and in MS Access, although the have different object models. So, are you trying to get data... |
Forum: Visual Basic 4 / 5 / 6 Oct 2nd, 2007 |
| Replies: 3 Views: 2,944 EOF is a function that is used with files you have open in Excel. It has nothing to do with the spreadsheet itself.
To do what you want to do, you need to designate a column that tells where the... |
Forum: IT Professionals' Lounge Oct 2nd, 2007 |
| Replies: 8 Views: 1,073 Is it possible that you are trying to run IE from an internet shortcut? If so, the web page you bring up comes from the "target" property of the shortcut.
To fix this, right click on the... |