Prompt, Confirm and Notice

by Nitesh Menon

Hello. I am Nitesh Menon an 11 year old who wanted to write a tutorial for JB. In this tutorial I will tell you about the functions Prompt, Confirm and Notice.

Prompt

The command prompt prompts a user to answer a question in a textbox here it is used in an example


nomainwin
prompt "What’s You’re favorite food?";f$
if f$="pizza" then end
end

The program asks the user what his favorite food is. The user then answers in the prompt.

Confirm

The command confirm asks a yes or no question. Instead of saying it let me show the code


nomainwin
confirm "Do you really want to quit?";q$
 if q$="yes" then end
end

The code opens up a window that says "do you really want to quit?" and has a yes and no button.

Notice

The control notice opens up a window with text and an ok button. For example:


nomainwin
  notice "You are a cool person"
end

Opens a window that says "You are a cool person" and has an ok button

Well that’s all I have to say. What I said is not EVERYTHING about notices, prompt’s and confirms but is the basics. For a complete understanding refer to the JB helpfile.