How can you make a program that when the status of something is changed it will do something else. I presume it's done with an IF condition. Thanks.
PS: I'm new to VB
Visual Basic Help !
Page 1 of 19 Replies - 337 Views - Last Post: 14 January 2013 - 11:00 AM
Replies To: Visual Basic Help !
#2
Re: Visual Basic Help !
Posted 14 January 2013 - 02:45 AM
I NEVER USE VB 6.. BUT I THINK THERE MUST BE EVENT HANDLER FOR THIS PURPOSE...
#3
Re: Visual Basic Help !
Posted 14 January 2013 - 03:03 AM
Usually I make use of Java but I thought it would be a great idea to learn VB
#4
Re: Visual Basic Help !
Posted 14 January 2013 - 03:30 AM
What something? What status? Could you be more specific or post something that you are currently working with ! that would be easier to fix the problems !
#5
Re: Visual Basic Help !
Posted 14 January 2013 - 04:26 AM
IsaacMessi10, on 14 January 2013 - 10:03 AM, said:
Usually I make use of Java but I thought it would be a great idea to learn VB
In that case, I would pick a newer version than VB6 (Check out the VB.Net forums).
In regards to your question, as already stated, you need to provide a little more detail for a more specific answer.
#6
Re: Visual Basic Help !
Posted 14 January 2013 - 04:29 AM
I'm building a Web Browser. I want to make the URL / Address Bar and its button multi purpose like Chrome (Search / Go To).
#7
Re: Visual Basic Help !
Posted 14 January 2013 - 10:34 AM
In simple terms you could use an IF statement for this on the button click event.
You would check for the various states of the Address bar (Empty, Valid URL or string) and then perform the relavent action.
something like
You would have to look at how to determine whether it's a valid URL, as that's not something I'm familiar with.
You would check for the various states of the Address bar (Empty, Valid URL or string) and then perform the relavent action.
something like
If strAdressBar.Text = "" then 'Empty address ElseIf fblnValidURL(strAddressBar.Text) then ' fblnValidURL would be a separate function to validate if it's a URL or not Else ' Must be a string of some description, so attempt a search End If
You would have to look at how to determine whether it's a valid URL, as that's not something I'm familiar with.
This post has been edited by maj3091: 14 January 2013 - 10:59 AM
#8
Re: Visual Basic Help !
Posted 14 January 2013 - 10:48 AM
Just to mention that ElseIf is one word in VB.
#9
Re: Visual Basic Help !
Posted 14 January 2013 - 10:59 AM
#10
Re: Visual Basic Help !
Posted 14 January 2013 - 11:00 AM
maj3091, on 14 January 2013 - 10:34 AM, said:
In simple terms you could use an IF statement for this on the button click event.
You would check for the various states of the Address bar (Empty, Valid URL or string) and then perform the relavent action.
something like
You would have to look at how to determine whether it's a valid URL, as that's not something I'm familiar with.
You would check for the various states of the Address bar (Empty, Valid URL or string) and then perform the relavent action.
something like
If strAdressBar.Text = "" then 'Empty address ElseIf fblnValidURL(strAddressBar.Text) then ' fblnValidURL would be a separate function to validate if it's a URL or not Else ' Must be a string of some description, so attempt a search End If
You would have to look at how to determine whether it's a valid URL, as that's not something I'm familiar with.
exactly what I was looking for thanks
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|