Forum: Visual Basic 4 / 5 / 6 May 24th, 2007 |
| Replies: 9 Views: 1,321 Re: numbering systems I guess the idea of that is instead of using string functions to find the different combinations in a sorting routine. Say the original string is "chain", then c =0, h = 1, a = 2, i =3, n =4.
So... |
Forum: Visual Basic 4 / 5 / 6 May 24th, 2007 |
| Replies: 9 Views: 1,321 |
Forum: Visual Basic 4 / 5 / 6 May 23rd, 2007 |
| Replies: 9 Views: 1,321 Re: numbering systems What I want to do is take a string and find all possible combinations of the characters in the string.
I read somewhere of one method that converts the characters to a number, using the number of... |
Forum: Visual Basic 4 / 5 / 6 May 23rd, 2007 |
| Replies: 9 Views: 998 |
Forum: Visual Basic 4 / 5 / 6 May 23rd, 2007 |
| Replies: 9 Views: 1,321 numbering systems Is there a VB function to allow you to construct counters using different number systems ie base 3, base 4, base 5, 6, 7 etc ?
I haven't used VB for a while and I'm getting a headache trying to... |
Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2005 |
| Replies: 6 Views: 1,502 Re: Code Error..................... Private Sub cmdCompute_Click()
Dim intNumExemptions As Integer, curIncome As Currency
If lblexemptions.Caption = "" Then
MsgBox "Please enter Exemption", vbExclamation + vbOKOnly, "Enter... |
Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2005 |
| Replies: 1 Views: 1,744 |
Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2005 |
| Replies: 6 Views: 1,502 Re: Code Error..................... or:
If Text1.Text < 10 or Text1.Text > 1000 Then
MsgBox("Entry must be between 10 and 1000")
Text1.Text = ""
Text1.SetFocus
Exit Sub
End If
You have to think of every error a... |
Forum: Visual Basic 4 / 5 / 6 Nov 9th, 2005 |
| Replies: 6 Views: 1,502 Re: Code Error..................... You need error-trapping for your textboxes, for instance:
If Not IsNumeric(Text1.Text) or Not IsNumeric(Text2.Text) Then
MsgBox ("Invalid Entry")
Exit Sub
End If
rejects non-numeric entries... |
Forum: Visual Basic 4 / 5 / 6 Nov 8th, 2005 |
| Replies: 2 Views: 3,308 Re: How to detect when Word has closed Thanks for that, Comatose,
the project I'm working on at the moment could have multiple instances of Word running at once (all launched from my application), but I decided to limit it to one at a... |
Forum: Visual Basic 4 / 5 / 6 Nov 7th, 2005 |
| Replies: 2 Views: 3,308 How to detect when Word has closed During the program, Word is opened and displays a document.
When Word is closed by clicking X or selecting File>Exit, the program must detect the event and reset controls.
How is that done, anyone? |
Forum: Visual Basic 4 / 5 / 6 Nov 7th, 2005 |
| Replies: 3 Views: 3,488 Re: search for file extension Hi Comatose,
That's exactly what I was after, you haven't left me much to do !
It even finds stuff thats been 'emptied' from the recycle bin, I had forgotten the power of batch files. Thanks... |
Forum: Visual Basic 4 / 5 / 6 Nov 6th, 2005 |
| Replies: 3 Views: 3,488 |
Forum: Visual Basic 4 / 5 / 6 Nov 3rd, 2005 |
| Replies: 12 Views: 9,177 Re: problem with Sendkeys Thanks for those, Comatose, believe it or not I had solved the problem (almost) before I read your last post with this:
Option Explicit
Dim WordApp As Word.Application
Dim WordDoc As... |
Forum: Visual Basic 4 / 5 / 6 Nov 2nd, 2005 |
| Replies: 12 Views: 9,177 Re: problem with Sendkeys Hi Comatose, thanks for the very interesting reply, and the compliment, but I must confess much of the code wasn't mine - I was going to use Shell, but then found an example using API's , and... |
Forum: Visual Basic 4 / 5 / 6 Nov 1st, 2005 |
| Replies: 12 Views: 9,177 problem with Sendkeys The object here is to open a selected Word file and Copy&Paste its contents into a text file. The problem seems to be with the Sendkeys commands having no effect. The project freezes, apparently... |
Forum: Visual Basic 4 / 5 / 6 Oct 26th, 2005 |
| Replies: 9 Views: 3,360 Re: Running a VB app on pc without VB installed After you compiled your project with 'Make', did you use the Package and Deployment Wizard? This collects any dependancy files (.DLL, .OCX etc) and includes them in an Install package.
Just copying... |
Forum: Visual Basic 4 / 5 / 6 Oct 25th, 2005 |
| Replies: 2 Views: 1,598 Re: Using Arrays with list boxes Hello, and welcome
Try the attached project. Needs a bit of work still, but it basically does what you want.
If you need the data you've entered to still be there when the program is run, you will... |
Forum: Visual Basic 4 / 5 / 6 Oct 24th, 2005 |
| Replies: 8 Views: 3,138 |
Forum: Visual Basic 4 / 5 / 6 Oct 21st, 2005 |
| Replies: 23 Views: 4,174 |
Forum: Visual Basic 4 / 5 / 6 Oct 20th, 2005 |
| Replies: 23 Views: 4,174 |
Forum: Visual Basic 4 / 5 / 6 Oct 19th, 2005 |
| Replies: 23 Views: 4,174 |
Forum: Visual Basic 4 / 5 / 6 Oct 19th, 2005 |
| Replies: 23 Views: 4,174 |
Forum: Visual Basic 4 / 5 / 6 Oct 18th, 2005 |
| Replies: 23 Views: 4,174 Re: pictureBox problem.. please help me! Forget that last post - that code didn't work for me, instead download and run the attached zip file. The project uses textboxes, but you can just substitute whichever control you want.
You’ll... |
Forum: Visual Basic 4 / 5 / 6 Oct 18th, 2005 |
| Replies: 23 Views: 4,174 |
Forum: Visual Basic 4 / 5 / 6 Oct 17th, 2005 |
| Replies: 23 Views: 4,174 |
Forum: Visual Basic 4 / 5 / 6 Oct 17th, 2005 |
| Replies: 3 Views: 1,759 Re: Timer help needed. If all Timer2 does is count down 3 secs then switch to Timer1 then the code needed would be something like this:
Private Sub Command1_Click()
txt2Sec.Text = 3
Timer2.Enabled = True
End... |
Forum: Visual Basic 4 / 5 / 6 Oct 16th, 2005 |
| Replies: 4 Views: 1,172 |
Forum: Visual Basic 4 / 5 / 6 Oct 16th, 2005 |
| Replies: 3 Views: 1,759 Re: Timer help needed. Yes, post something of what you've done so far, making it a little clearer what you need to do. |
Forum: Visual Basic 4 / 5 / 6 Oct 16th, 2005 |
| Replies: 2 Views: 1,285 Re: Need Urgent Solution This may help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vamsgoutofbounds.asp |
Forum: Visual Basic 4 / 5 / 6 Oct 16th, 2005 |
| Replies: 4 Views: 1,172 |
Forum: Visual Basic 4 / 5 / 6 Oct 11th, 2005 |
| Replies: 6 Views: 2,803 Re: binary counter Hello, and welcome.
Can you give us a little more information on what you're trying to do? |
Forum: Visual Basic 4 / 5 / 6 Oct 10th, 2005 |
| Replies: 13 Views: 2,742 Re: Stopping a timer Aah...thought you meant you didn't like it, actually I don't, but lets face it, all the info seems to be there if you can find it. Anyway, thanks for enlightening me, I'm sure it won't be the last... |
Forum: Visual Basic 4 / 5 / 6 Oct 9th, 2005 |
| Replies: 13 Views: 2,742 |
Forum: Visual Basic 4 / 5 / 6 Oct 9th, 2005 |
| Replies: 13 Views: 2,742 Re: Stopping a timer Thanks for that, Invisal
The Mod operator isn't mentioned in any of the books I have. I suppose I should browse MSDN more! |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2005 |
| Replies: 13 Views: 2,742 Re: Stopping a timer Hi, Invisal, I know I should have done a proper example, like
If x / 2 = Int (x / 2) Then
'it's even so do something
Else
'it's odd, so do something else
End if
Just wondering about... |
Forum: Visual Basic 4 / 5 / 6 Oct 8th, 2005 |
| Replies: 13 Views: 2,742 Re: Stopping a timer Say your variable is called x.
If x / 2 = Int(x / 2) then it's even, otherwise it's odd. That should work for you. The Int function rounds down to the nearest whole number. |
Forum: Legacy and Other Languages Oct 4th, 2005 |
| Replies: 66 Views: 11,844 |
Forum: Visual Basic 4 / 5 / 6 Oct 4th, 2005 |
| Replies: 8 Views: 7,982 |
Forum: Visual Basic 4 / 5 / 6 Oct 4th, 2005 |
| Replies: 8 Views: 7,982 Re: need a count down timer [QUOTE=Slavrix]when the hour box is zero, the counter still resets the minutes to 59.
QUOTE]
When the hour box changes from 1 to 0, there are still 59mins 59 secs left to go. But maybe you mean... |