Page 1 of 1

input box

PostPosted: Thu Sep 11, 2014 11:05 pm
by sassiue
Can you tell me why this does not work
Page 1
page1 > Page Enter
+ InputBox "welcome" "Enter Your Name" "[1]"......................................Line 1...Parent enters childs name
+ GotoNextPage

Page 2
page 2 > Page Enter
+ InputBox "Welcome" "Enter your name" "[2]"................................... child enters their name
+ If "[2]" "=" "1" ......................................................................
- GotoNextPage........................................................................................Neobook Debugger shows the
+ Else 3rd line as an error
+ AlertBox "Error!" "Wrong Name Try Again.".......................................program does not go to next page it
displays the error message
+ EndIf


...............................................................................................................................................................................................................................
I used this example from Neobook help.
Example: My verification concept: To Teach child to write their name
InputBox "Welcome" "Enter your access code" "[Code]" parent enters the correct spelling on page1 and the child must If "[Code]" "=" "JB5276H" must enter the name correctly on page 2 to enter book
GotoPage "Start"
Else
AlertBox "Sorry" "That’s not a valid access code."
Exit "" ""
EndIf

Re: input box

PostPosted: Thu Sep 11, 2014 11:26 pm
by Tony Kroos
Code: Select all
If "[2]" "=" "1"

If "[2]" "=" "[1]" <- you need this

you equate the expression to 1, not [1] variable. Enter number 1 as a name and it works )