Forum: Visual Basic 4 / 5 / 6 Mar 3rd, 2009 |
| Replies: 6 Views: 525 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 10th, 2009 |
| Replies: 3 Views: 329 Even though I strongly empathize with your situation, the code that you are requesting is highly illegal, and has major moral implications as well. As the site rules (sometimes unfortunately)... |
Forum: Visual Basic 4 / 5 / 6 Feb 7th, 2009 |
| Replies: 3 Views: 1,361 |
Forum: Visual Basic 4 / 5 / 6 Jan 24th, 2009 |
| Replies: 3 Views: 702 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 Mar 16th, 2007 |
| Replies: 9 Views: 12,279 Ok, let's try to tackle this step by step....
1. There are a number of ways to find data within a string. What we really need to know, is the format of these files.... for example, does the... |
Forum: Visual Basic 4 / 5 / 6 Oct 4th, 2006 |
| Replies: 6 Views: 3,495 Is this in XP (there has a been a few threads going around about problems with reading/writing serial ports in XP with VB). Also, I'm not sure if the output is supposed to be a string, or if it's... |
Forum: Visual Basic 4 / 5 / 6 Sep 11th, 2006 |
| Replies: 11 Views: 24,059 It's a problem with my code (BAH):
if right(SearchString, 1) = chr(13) or right(SearchString, 1) = chr(10) then
' /* Should be Left, Not Right */
SearchString = left(SearchString,... |
Forum: Visual Basic 4 / 5 / 6 Sep 11th, 2006 |
| Replies: 11 Views: 24,059 if right(SearchString, 1) = chr(13) or right(SearchString, 1) = chr(10) then
SearchString = right(SearchString, len(SearchString) -1)
end if
Would Also Do The Trick... There's more than one... |
Forum: Visual Basic 4 / 5 / 6 Sep 11th, 2006 |
| Replies: 11 Views: 24,059 That is the best way to do it. A couple things I would note on this. One of them, is the use of an empty string in the replace function. I know on small applications, that it doesn't make a... |
Forum: Visual Basic 4 / 5 / 6 Sep 11th, 2006 |
| Replies: 4 Views: 1,556 E-mail what? What Code Exactly? |
Forum: Visual Basic 4 / 5 / 6 Sep 8th, 2006 |
| Replies: 5 Views: 1,897 why can't you do it on mouse_move? On mousedown set a boolean flag variable that says that the mouse is down. On mouseup clear the boolean flag variable (set it to false). On the mousemove... |
Forum: Visual Basic 4 / 5 / 6 Aug 29th, 2006 |
| Replies: 3 Views: 6,649 I wouldn't suggest going about it that way. You can add a textbox to the form, and set it's "multiline" property to true. Then go to the "scrollbars" property, and choose if you want vertical,... |
Forum: Visual Basic 4 / 5 / 6 Aug 6th, 2006 |
| Replies: 10 Views: 7,180 I don't see why you can't just port over the code that's in the VBScript WSH. If you send me (or post the code) to the .VBS, I can show you how to import it into VB. Since you are using express,... |
Forum: Visual Basic 4 / 5 / 6 May 28th, 2006 |
| Replies: 1 Views: 928 Well, the difference between a thin client and a fat client is:
thin client: the bulk of processing is done on the server
fat client: the processing is done on the client
A thin client usually... |
Forum: Visual Basic 4 / 5 / 6 May 14th, 2006 |
| Replies: 2 Views: 7,361 As far as I know you can't. I believe you could port your source to VB6 with minor modifications, and then compile the EXE from VB, but I'm pretty sure that VBA (macro's and such) are interpreted,... |
Forum: Visual Basic 4 / 5 / 6 Apr 7th, 2006 |
| Replies: 8 Views: 11,802 An IRC Bot is a fun one to build...... or a web server. You could build an MP3 player, or a program to keep track of business information, such as clients, employees, accounts, etc. Another fun... |
Forum: Visual Basic 4 / 5 / 6 Feb 15th, 2006 |
| Replies: 2 Views: 1,648 First problem (in form_load):
me.show
main.Setfocus
Second:
Dunno which box we are talking about... the big multi-line one?
Third (on text1's keypress event, or whatever box you do the... |
Forum: Visual Basic 4 / 5 / 6 Feb 24th, 2005 |
| Replies: 7 Views: 37,195 so, the usernames and passwords are stored in an access database? |