PDA

View Full Version : OSK Argument Error



LOUDWORLD
12-09-2008, 04:09 AM
As I continue to chip away at my challenge I have come across this project file that has an onscreen keyboard that looks as though it will serve my needs.

However when I preview it and click on a key I get the following error; 'Page1->ButtonXX->On Click, Line 1: Argument 1 must be of type string'.

Despite having worked with AMS for 6 years now, going all the way back to 3.0 I have always used Wizard based design, so unfortunately I have no clue what this means, nor do I know how to fix it.

Any offered help would be appreciated, please be gentle with me, I am a fast learner and don't take up much space!

Thank You!

Lou
780 699 0510

reteset
12-09-2008, 04:41 AM
it is a simple thing

you have used fokus variable for all Input.GetText(fokus);
but you have never defined a value for fokus that refers to Input1

put fokus = "Input1"; in to Global functions or On show event of current page

LOUDWORLD
12-09-2008, 04:52 AM
Thank you for that reply!

Upon further futzing about I discovered that clicking the cursor inside of the input box prior to typing allowed the input of characters. Reteset's Global code fixed the Argument error and now typed text goes directly to the input box.

Next I would like the 'Search' button to perform a 'Dialog.PageSearch' function using the characters typed into the input box.

The project will run at an unattended touch screen kiosk and users will need to be able to search about 1000 pages by last name or year.

Thank You in advance for any help offered!

Lou