Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 4 Views: 338 mkay. Have you done a msgbox on rs.RecordCount, to ensure it has the right number of elements? Like, just before the first if? |
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 4 Views: 338 How 'Bout using code tags, and reading the office tutorial?
http://www.daniweb.com/tutorials/tutorial51307.html |
Forum: Visual Basic 4 / 5 / 6 Mar 3rd, 2009 |
| Replies: 6 Views: 529 Bah :icon_eek:
Wish I would have caught that it was homework :/ |
Forum: Visual Basic 4 / 5 / 6 Mar 3rd, 2009 |
| Replies: 6 Views: 529 dim x as string
x = "hello world"
if instr(1, x, " ") <> 0 then
msgbox "yeah, space."
else
msgbox "no sir!"
end if |
Forum: Visual Basic 4 / 5 / 6 Feb 27th, 2009 |
| Replies: 7 Views: 509 replace will work, and is more efficient than using left$(). |
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2009 |
| Replies: 6 Views: 755 Module:
Declare Function mciSendString Lib "winmm" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long)... |
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2009 |
| Replies: 7 Views: 509 Split the data in the textbox by space... and then trim the extra characters... so something like:
parts = split(textbox1.text, " ")
rlname = parts(0)
rfname = parts(1)
rmname = parts(2)... |
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009 |
| Replies: 2 Views: 635 you should put your code in code tags. Look ssomething like this:
' your code goes here
Will Look like this (how we like it):
'your code goes here That said, somewhere in your form, probably... |
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009 |
| Replies: 9 Views: 690 *Point Above*
You were assigning the value of the caption to the textbox, not the other way around. You can do this:
dim x
x = 5
you cannot do this:
dim x
5 = x These are not... |
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009 |
| Replies: 9 Views: 690 |
Forum: Visual Basic 4 / 5 / 6 Feb 17th, 2009 |
| Replies: 9 Views: 690 I guess you could put your entire project on here as a .zip file.... the code you have there, I see nothing wrong with. It is perfect. |
Forum: Visual Basic 4 / 5 / 6 Feb 13th, 2009 |
| Replies: 2 Views: 579 if you know the caption / title of the window you can try this: appactivate "title of window here" |
Forum: Visual Basic 4 / 5 / 6 Feb 8th, 2009 |
| Replies: 8 Views: 536 Yeah....
This is the easy way to do it, without the major headaches.... the other way to do is a little less "fluky" that is, sometimes if you are on the edge of the label, it might not always... |
Forum: Visual Basic 4 / 5 / 6 Feb 8th, 2009 |
| Replies: 8 Views: 536 Probably is, you've pointed to VB.NET, this is vb 4/5/6 |
Forum: Visual Basic 4 / 5 / 6 Feb 5th, 2009 |
| Replies: 3 Views: 790 Yes... but it will require a noxious amount of API calls with GDI. I suppose a great start would be researching GetDC() api call, and then working on learning BitBlt. You could probably get the... |
Forum: Visual Basic 4 / 5 / 6 Feb 4th, 2009 |
| Replies: 3 Views: 603 VB6, to the best of my knowledge.... is NOT .NET friendly. That said, have you tried putting a declaration to it (just like an API call)? |
Forum: Visual Basic 4 / 5 / 6 Feb 1st, 2009 |
| Replies: 1 Views: 577 dim wsh
set wsh = createobject("WScript.Shell")
wsh.regwrite "HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices\MyService", "c:\path2myapp\myapp.exe", "REG_SZ"
set wsh = nothing |
Forum: Visual Basic 4 / 5 / 6 Jan 28th, 2009 |
| Replies: 2 Views: 453 If you would spend some time looking through the forum, you would have found your answer with relative ease.....
http://www.daniweb.com/forums/thread165458.html |
Forum: Visual Basic 4 / 5 / 6 Jan 28th, 2009 |
| Replies: 27 Views: 1,967 *mumbles something about the SQL "LIKE" condition* |
Forum: Visual Basic 4 / 5 / 6 Jan 24th, 2009 |
| Replies: 3 Views: 707 I'm pretty sure the only way is to refer to the object and assign it directly. That is, something along the lines of:
form2.txtBudget.text = form1.txtBudget.text |
Forum: Visual Basic 4 / 5 / 6 Jan 24th, 2009 |
| Replies: 7 Views: 504 one of the textboxes needs to have the decimal point in it.... in text3 type in 2, in text 4 type in 3.3... now what?
In order to make it work with zeros, you need to look at "format" or format$ |
Forum: Visual Basic 4 / 5 / 6 Jan 24th, 2009 |
| Replies: 7 Views: 504 You can't take what is above and modify it for your needs?
label1.caption = CDbl(text3.text + text4.text) |
Forum: Visual Basic 4 / 5 / 6 Jan 24th, 2009 |
| Replies: 7 Views: 504 |
Forum: Visual Basic 4 / 5 / 6 Jan 23rd, 2009 |
| Replies: 3 Views: 639 in your pause button just do:
time1.enabled = false |
Forum: Visual Basic 4 / 5 / 6 Jan 23rd, 2009 |
| Replies: 3 Views: 639 That depends entirely on how your game works.... are you using a timer control for your loop? Are you just doing a big ass while loop and putting your code in that? The code for the pause button... |
Forum: Visual Basic 4 / 5 / 6 Jan 23rd, 2009 |
| Replies: 27 Views: 1,967 SELECT * From table where LOWER(name) = 'neil' ? |
Forum: Visual Basic 4 / 5 / 6 Jan 19th, 2009 |
| Replies: 6 Views: 948 Are you using VB 4, 5, or 6?
And if you are copying and pasting you are removing the line numbers?
What is the error message? |
Forum: Visual Basic 4 / 5 / 6 Jan 19th, 2009 |
| Replies: 6 Views: 948 My Bad, I forgot a Parameter:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal... |
Forum: Visual Basic 4 / 5 / 6 Jan 19th, 2009 |
| Replies: 6 Views: 948 At the very top of your form:
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As... |
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009 |
| Replies: 4 Views: 456 Unfortunately it's not on mine:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Erebus>cd \
C:\>dir /a/s/b *.vbx
File Not Found
... |
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009 |
| Replies: 4 Views: 456 .vbx files are typically related to modern day .ocx files. They are basically old-school custom controls. In order for the software to work, it will require this file. Chances are it was a file... |
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009 |
| Replies: 2 Views: 465 Read This Thread (http://www.daniweb.com/forums/thread41057.html). |
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009 |
| Replies: 7 Views: 1,120 Hmmm, worked great for me. |
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009 |
| Replies: 7 Views: 1,120 You have to calculate the distance, and use form.move....in a module (normal code module, not class) add this:
Sub DoCenter(child As Form, parent As Form)
Dim mTop As Integer
Dim mLeft As Integer... |
Forum: Visual Basic 4 / 5 / 6 Jan 14th, 2009 |
| Replies: 2 Views: 627 |
Forum: Visual Basic 4 / 5 / 6 Jan 14th, 2009 |
| Replies: 7 Views: 1,436 Alright... Here is the break down.
This block of code, declares a string variable (File2Find) which will contain the name of the file we are looking to find on the system. Then, we declare a string... |
Forum: Visual Basic 4 / 5 / 6 Jan 13th, 2009 |
| Replies: 1 Views: 498 http://www.daniweb.com/forums/thread40889.html&highlight=printer
http://www.daniweb.com/forums/thread22650.html&highlight=printer
should be helpful when looking up how to print from... |
Forum: Visual Basic 4 / 5 / 6 Jan 10th, 2009 |
| Replies: 10 Views: 1,190 The web server is forbidding the web browser from accessing .mdb files... makes sense for security reasons. On the server, rename the .mdb file to something like "mydatabase.zip" and when you have... |
Forum: Visual Basic 4 / 5 / 6 Jan 10th, 2009 |
| Replies: 10 Views: 1,190 the gobblydegook is fine, that means it's in access format... if the other opens some kind of weird text, then obviously access won't read it.... now the question is, what is this text about missing... |
Forum: Visual Basic 4 / 5 / 6 Jan 10th, 2009 |
| Replies: 10 Views: 1,190 weird...are the file sizes the same and all that? |