473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

HELP! 'then' error?

I am making a web browser, and have accidentaly posed this question to the
wrong newsgroup. I have a block in my code which is this:

If TextBox1 = < Then
WebBrowser1.GoBack()
End If

The response that I got from the other newsgroup was that I was stating that
TextBox1 had to be smaller than 'then'. I now realise this, but I want to
know how to get the code to state that if TextBox1 equals the '<' character
on the keyboard then to do xyz.

Please HELP
May 20 '07 #1
4 894
SmartRoss wrote:
I am making a web browser, and have accidentaly posed this question to the
wrong newsgroup. I have a block in my code which is this:

If TextBox1 = < Then
WebBrowser1.GoBack()
End If

The response that I got from the other newsgroup was that I was stating that
TextBox1 had to be smaller than 'then'. I now realise this, but I want to
know how to get the code to state that if TextBox1 equals the '<' character
on the keyboard then to do xyz.
Put quotes around the string literal:

If TextBox1 = "<" Then

--
Göran Andersson
_____
http://www.guffa.com
May 20 '07 #2


"Göran Andersson" wrote:
SmartRoss wrote:
I am making a web browser, and have accidentaly posed this question to the
wrong newsgroup. I have a block in my code which is this:

If TextBox1 = < Then
WebBrowser1.GoBack()
End If

The response that I got from the other newsgroup was that I was stating that
TextBox1 had to be smaller than 'then'. I now realise this, but I want to
know how to get the code to state that if TextBox1 equals the '<' character
on the keyboard then to do xyz.

Put quotes around the string literal:

If TextBox1 = "<" Then

--
Göran Andersson
_____
http://www.guffa.com
Puting quotes around it causes an overload error, VB2005Express says that it
cannot find a valid '=' argument or something like that.
May 20 '07 #3
If TextBox1.Text = "<" Then
WebBrowser1.GoBack()
End If

"SmartRoss" <Sm*******@discussions.microsoft.comwrote in message
news:AC**********************************@microsof t.com...
>

"Göran Andersson" wrote:
>SmartRoss wrote:
I am making a web browser, and have accidentaly posed this question to
the
wrong newsgroup. I have a block in my code which is this:

If TextBox1 = < Then
WebBrowser1.GoBack()
End If

The response that I got from the other newsgroup was that I was stating
that
TextBox1 had to be smaller than 'then'. I now realise this, but I want
to
know how to get the code to state that if TextBox1 equals the '<'
character
on the keyboard then to do xyz.

Put quotes around the string literal:

If TextBox1 = "<" Then

--
Göran Andersson
_____
http://www.guffa.com

Puting quotes around it causes an overload error, VB2005Express says that
it
cannot find a valid '=' argument or something like that.

May 20 '07 #4
SmartRoss wrote:
Puting quotes around it causes an overload error, VB2005Express says that it
cannot find a valid '=' argument or something like that.
Please quote the exact error message when you get one. "Something like
that" could be just about anything...

Perhaps what you are trying to compare the string to is not a string at
all? Perhaps the TextBox1 variable is not a string, but a reference to a
TextBox control?

--
Göran Andersson
_____
http://www.guffa.com
May 20 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
4
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to...
6
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
3
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
5
by: Steve | last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp My expectation is that a developer using my DLL would be able to access this help file during his development time...
9
by: JJ | last post by:
Do you all use HTML help workshop to create your help system. I am finding it quite clumsy to use. Mayeb because I am not used to using it. Do any of you use any other techniques to create help...
4
by: Fred Flintstone | last post by:
This one baffles me. I'm using VS.Net 2005 and write desktop apps that need built in help. So logically, I figure maybe VS has a help system component built in so I search the help. Hey! ...
8
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my laptop. All the settings look the same on both...
3
by: lord.zoltar | last post by:
I've managed to get a nice little chm help system written. Now I need to display it! I added a HelpProvider to my MDIParent form and set the namespace of the HelpProvider to be the help file. So...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.