[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
VS_Ask()             Asks the user a one line question

Description:

  VS_Ask() prompts the user with a one line question and will return a
  one character response which can be limited to specific characters.

Syntax:     

  c_Answer = VS_Ask( c_Question, c_KeyList, [n_row] , [n_Col] )

Pass:       

  c_Question is a character expression containing the question to
  ask the user.  c_Question should not include the question mark.

  c_KeyList is a character expression containing the list of
  acceptable characters that the user can respond with.  The first
  character in the list is used as the default answer.

  n_Row is an option numeric value representing the top row of the
  window.

  n_Col is an option numeric value representing the left column of
  the window.

Return:     

  c_Answer is a character expression of the key the user pressed.

Notes:      

  VS_Ask() is non-screen destructive.

Example:    

  IF VS_Ask("Continue","YyNn") $ "Nn"
     QUIT
  ENDIF

Usage:      

  VS_Ask() is very useful for asking the user simple questions such as
  "Is the printer ready?", "Are you sure?", etc.

See Also: VS_ASK2() VS_MSG() VS_WIND()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson