Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Table of contents Previous: ARGHELP Next: ASTAT Index

ASK1

Defines questions to prompt the user for string input.


Format

ASK1 string1 'question1 ' . . 'stringN 'questionN'


Parameters

string1 . . stringN

string names to place the user's answers in

'question1' . . 'question N'

the corresponding questions to ask; quotes are required; use uppercase and/or lowercase letters


Remarks

The ASK1 command defines one or more questions and generates windows that prompts the user for a value for each of the questions. The values entered in the window are entered in the strings named by ASK1. After entering the values, click the OK button or press Enter. Everything you typed in the window is placed in the corresponding strings. To cancel the command, press the Cancel button or press Esc; the value of the strings will not change.

Returned strings greater than 160 characters are truncated to 160 characters.

ASK1 is well suited for the user interface tools like the F Key Menu System.

If the string already exists, its current value appears so you can edit it. Thus, it's easier to change an existing string's value with ASK1 than with the TE command.


Examples

ASK1 TIME 'Enter time for plot:'

This entry generates a window with the prompt "Enter time for plot:". Entering text and clicking the OK button or pressing the Enter key enters the new value in the string TIME. If no text is entered and the Cancel button is clicked, the string TIME does not change.


Table of contents Previous: ARGHELP Next: ASTAT Index
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690