Search Results

Showing results 1 to 40 of 243
Search took 0.04 seconds.
Search: Posts Made By: Comatose ; Forum: Visual Basic 4 / 5 / 6 and child forums
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009
Replies: 4
Solved: Bookmarks
Views: 338
Posted By Comatose
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
Solved: Bookmarks
Views: 338
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Solved: help
Views: 509
Posted By Comatose
replace will work, and is more efficient than using left$().
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2009
Replies: 6
Views: 755
Posted By Comatose
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
Solved: help
Views: 509
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
*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
Posted By Comatose
aha! No Caption Set Yet!
Forum: Visual Basic 4 / 5 / 6 Feb 17th, 2009
Replies: 9
Views: 690
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Solved: VB6 locate file
Views: 453
Posted By Comatose
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
Posted By Comatose
*mumbles something about the SQL "LIKE" condition*
Forum: Visual Basic 4 / 5 / 6 Jan 24th, 2009
Replies: 3
Views: 707
Posted By Comatose
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
Solved: help :)
Views: 504
Posted By Comatose
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
Solved: help :)
Views: 504
Posted By Comatose
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
Solved: help :)
Views: 504
Posted By Comatose
MsgBox CDbl(1 + 3.3)
Forum: Visual Basic 4 / 5 / 6 Jan 23rd, 2009
Replies: 3
Views: 639
Posted By Comatose
in your pause button just do:
time1.enabled = false
Forum: Visual Basic 4 / 5 / 6 Jan 23rd, 2009
Replies: 3
Views: 639
Posted By Comatose
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
Posted By Comatose
SELECT * From table where LOWER(name) = 'neil' ?
Forum: Visual Basic 4 / 5 / 6 Jan 19th, 2009
Replies: 6
Views: 948
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Solved: PUSHHELP.vbx
Views: 456
Posted By Comatose
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
Solved: PUSHHELP.vbx
Views: 456
Posted By Comatose
.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
Posted By Comatose
Read This Thread (http://www.daniweb.com/forums/thread41057.html).
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009
Replies: 7
Views: 1,120
Posted By Comatose
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009
Replies: 7
Views: 1,120
Posted By Comatose
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
Posted By Comatose
Forum: Visual Basic 4 / 5 / 6 Jan 14th, 2009
Replies: 7
Views: 1,436
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
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
Posted By Comatose
weird...are the file sizes the same and all that?
Showing results 1 to 40 of 243

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC