WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How do you Type in the & Sign ????

Keywords: 

Question:

I want to use the MouseClickBtn command as follows; MouseClickBtn ("A/P Period End","","Month end & purge")

and it keeps falling over with an error message and changing the & sign to a _ !!!! What do I do ???

Answer:

Use:
	MouseClickBtn ("A/P Period End","","Month end && purge")
The reason for the problem is that the & is how menus and buttons identify what alt-character can be used to press that button. ie- if the button name is "Month End", then you must use the mouse (or whatever number of {tab}s, to press the button. If the button name is "&Month End", it will show up as "Month End", and then you can also use Alt-M to press the button.

I would ignore the appearance of the '_' in the error message and concentrate on what else may have gone wrong.


Article ID:   W13095
Filename:   MouseClickBtn and Sending Ampersands.txt
File Created: 2001:01:12:10:53:50
Last Updated: 2001:01:12:10:53:50