legend_018
09-14-2008, 09:30 PM
I have been trying to figure this out and I just don't understand.
in world.main I create a variable called name with type string.
I want to have a dialog box come up and ask the user for there name. So the dialog box would say "what is your name?".
I'm using the coach object.
So I create the variable of type string and leave it as default string.
Than I drag the name variable down to where my code will be. It it asks me to set a value. I leave it as default string temporarily. I than drag the ask user for a string function in. I have to pick something, so I pick enter a string: A dialog box comes up saying enter a string. Not sure what to enter here? So I just enter in a name "Mary". It asks me to enter something a 2nd time (?). It doesn't matter what I pick, these dialog boxes come up asking me to enter something in and it's always 2ce. I have also tried just putting in the question such as What is your name? and it will still come up with 2 dialog boxes asking me for a name. The code will than look like this as an example:
name set value to ( ask user for a string question = what is your name? )
If I run the program it works.
However, if I close out of Alice and go back in and try to edit the main method, it automatically each time comes up with these 2 dialog boxes. Right after I click on EDIT.
I have also tried different things
I can do this without any problems if I ask for a # using the ask user for a number dialog. That is of course after I create a variable of type number. It doesn't come up with these dialog boxes though.
in world.main I create a variable called name with type string.
I want to have a dialog box come up and ask the user for there name. So the dialog box would say "what is your name?".
I'm using the coach object.
So I create the variable of type string and leave it as default string.
Than I drag the name variable down to where my code will be. It it asks me to set a value. I leave it as default string temporarily. I than drag the ask user for a string function in. I have to pick something, so I pick enter a string: A dialog box comes up saying enter a string. Not sure what to enter here? So I just enter in a name "Mary". It asks me to enter something a 2nd time (?). It doesn't matter what I pick, these dialog boxes come up asking me to enter something in and it's always 2ce. I have also tried just putting in the question such as What is your name? and it will still come up with 2 dialog boxes asking me for a name. The code will than look like this as an example:
name set value to ( ask user for a string question = what is your name? )
If I run the program it works.
However, if I close out of Alice and go back in and try to edit the main method, it automatically each time comes up with these 2 dialog boxes. Right after I click on EDIT.
I have also tried different things
I can do this without any problems if I ask for a # using the ask user for a number dialog. That is of course after I create a variable of type number. It doesn't come up with these dialog boxes though.