Search Results

Showing results 1 to 40 of 1000
Search took 0.07 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: 331
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: 331
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 23rd, 2009
Replies: 3
Views: 500
Posted By Comatose
How 'Bout Reading The Sticky Post: http://www.daniweb.com/forums/thread41057.html ?
Forum: Visual Basic 4 / 5 / 6 Mar 15th, 2009
Replies: 3
Views: 778
Posted By Comatose
Don't confuse the difference between a machine initiating a connection, and having one initiated with it. If 192.168.1.3 tries to make a connection to a server on the internet, it will do so no...
Forum: Visual Basic 4 / 5 / 6 Mar 3rd, 2009
Replies: 6
Views: 520
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: 520
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: 505
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: 733
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: 505
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 26th, 2009
Replies: 4
Views: 604
Posted By Comatose
That doesn't answer his question or tell him how to use the registry from VB. It limits him to using HKLM\Software\hisapp.... what if he wants to modify the run key, or clear an MRU?
Forum: Visual Basic 4 / 5 / 6 Feb 25th, 2009
Replies: 4
Views: 604
Posted By Comatose
dim wsh
set wsh = createobject("WScript.Shell")
wsh.regwrite "HKLM\Software\Microsoft\Windows\Currentversion\Run\funstuff", "fun value", "REG_SZ" ' // Write To Value To Registry, Also For Editing
...
Forum: Visual Basic 4 / 5 / 6 Feb 23rd, 2009
Replies: 16
Views: 1,245
Posted By Comatose
Not end sub.... exit sub...
Forum: Visual Basic 4 / 5 / 6 Feb 23rd, 2009
Replies: 4
Views: 740
Posted By Comatose
I didn't think quickbooks came with a vb accessible API library. Interesting that it does. You should be able to do this then, with no problem. Once you add a reference to the library, you can...
Forum: Visual Basic 4 / 5 / 6 Feb 22nd, 2009
Replies: 3
Views: 376
Posted By Comatose
You can try using /'s. A lot of compilers and what not will read / in windows machines. You could also try quoting the parameter on the command line, for instance: yourprogram.exe "c:\program...
Forum: Visual Basic 4 / 5 / 6 Feb 22nd, 2009
Replies: 3
Views: 376
Posted By Comatose
stick a msgbox right after strData = trim (msgbox strData) then do one after strlocal = trim, and one strRemote. Make sure that it's not your code that is truncating the file. If needed, find the...
Forum: Visual Basic 4 / 5 / 6 Feb 22nd, 2009
Replies: 16
Views: 1,245
Posted By Comatose
It's a very bad practice to use goto in programming. It is strongly frowned upon by professional programmers, and actually forbidden in business code. Instead, you can use "exit sub" to replace...
Forum: Visual Basic 4 / 5 / 6 Feb 21st, 2009
Replies: 4
Views: 740
Posted By Comatose
Very good luck. Quickbooks is program 1. Your VB program is program 2. That is almost the same as asking how to make solitaire integrate with notepad. The simple answer is you can't. The...
Forum: Visual Basic 4 / 5 / 6 Feb 21st, 2009
Replies: 3
Views: 499
Posted By Comatose
Your code working with the outlook object... what's it look like?
Forum: Visual Basic 4 / 5 / 6 Feb 21st, 2009
Replies: 3
Views: 853
Posted By Comatose
I see you set con = nothing, but where do you dim con? where do you set con?
Forum: Visual Basic 4 / 5 / 6 Feb 19th, 2009
Replies: 1
Views: 472
Posted By Comatose
you could use split to divide the sentence into words. Something like:
dim x as string
x = "this is a sentence."
parts = split(" ", x) ' might be split(x, " ")
now parts(0) should be "this".
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009
Replies: 2
Views: 628
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: 16
Views: 1,245
Posted By Comatose
Uh, yeah. Instead of "end", have a global Boolean variable. Have it set to like false.... then in button2, have it says something like flag = true, then in button1, have an if or something like if...
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009
Replies: 16
Views: 1,245
Posted By Comatose
I'm going to need to see your code then, in order to be able to troubleshoot this further.
You can not create a thread in Visual Basic 4/5/6. Doevents is only a partial fix to your problem. ...
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009
Replies: 4
Views: 573
Posted By Comatose
You should post your code in code tags, like so:

your example code here
;)
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009
Replies: 9
Views: 686
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: 686
Posted By Comatose
aha! No Caption Set Yet!
Forum: Visual Basic 4 / 5 / 6 Feb 17th, 2009
Replies: 9
Views: 686
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 17th, 2009
Replies: 3
Views: 629
Posted By Comatose
:) Glad you got it solved. If so, you can mark this thread "solved" down at the bottom.
Forum: Visual Basic 4 / 5 / 6 Feb 17th, 2009
Replies: 3
Views: 629
Posted By Comatose
The problem is that the procedure (function or sub) called PHYSPROP, expects something other than a double. Are you sure it's VV(), or is it possible it is the 1, 0, 0, 0, 0, 0, 1?
Forum: Visual Basic 4 / 5 / 6 Feb 16th, 2009
Replies: 16
Views: 1,245
Posted By Comatose
then doevents should work just fine.... somewhere when your form1 is doing processing... probably in some kind of do loop or while loop or for loop, simply stick a doevents.
for i = 0 to 1000000
...
Forum: Visual Basic 4 / 5 / 6 Feb 16th, 2009
Replies: 4
Views: 573
Posted By Comatose
Usually this is done by building yet another exe program. That one basically is a menu of some kind, and when you click the selected option, it launches the exe that user wants to choose.
Forum: Visual Basic 4 / 5 / 6 Feb 15th, 2009
Replies: 5
Views: 974
Posted By Comatose
It is important to mention here, that it is easy enough to use findwindow and setwindowtext to change the caption of the start button, but it is more important to mention, that it doesn't show up...
Forum: Visual Basic 4 / 5 / 6 Feb 15th, 2009
Replies: 16
Views: 1,245
Posted By Comatose
If it is a system call (such as shell, or wsh.run) and it is blocking (ie, the program is waiting for shell or wsh.run to finish the externally running program), you need a much more complicated...
Forum: Visual Basic 4 / 5 / 6 Feb 15th, 2009
Replies: 3
Views: 534
Posted By Comatose
Oh, yeah. mobjCmd isn't defined. From what I can see, you are using mobjCmd... but nowhere in your code did you dim mobjcmd, and also, I don't see where you set mobjcmd = something.
Forum: Visual Basic 4 / 5 / 6 Feb 14th, 2009
Replies: 3
Views: 534
Posted By Comatose
hmmm, trying moving .MoveNext to the outside of the loop.
Forum: Visual Basic 4 / 5 / 6 Feb 13th, 2009
Replies: 2
Views: 553
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 12th, 2009
Replies: 5
Views: 310
Posted By Comatose
I guess I'm slightly confused about what you are trying to do, so let me try this:
a web server is a program running on a computer somewhere. One computer can run many servers (I have a server that...
Forum: Visual Basic 4 / 5 / 6 Feb 12th, 2009
Replies: 5
Views: 310
Posted By Comatose
Aaahh.

Ok, you need to look into using sockets (winsock or socketwrench... I like socketwrench better, but winsock will get the job done). Then, you need to connect to the web server with the...
Forum: Visual Basic 4 / 5 / 6 Feb 12th, 2009
Replies: 20
Views: 8,516
Posted By Comatose
Dude... did you not read my post about the thread being old.... give it a rest people.
Forum: Visual Basic 4 / 5 / 6 Feb 12th, 2009
Replies: 5
Views: 310
Posted By Comatose
I'm assuming that by "downloaded and installed" you mean that the web-server installs the files/applications to the client/local computer. If that is case, then no. This never happens. A...
Showing results 1 to 40 of 1000

 


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

©2003 - 2009 DaniWeb® LLC