func_system_proceed.rst 799 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. _func_system_proceed:
  2. =======
  3. Proceed
  4. =======
  5. Proceed -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. Proceed( text$,serious=False )
  10. Request user confirmation or cancellation.
  11. #Proceed activates a simple user interface element requesting the user to select between
  12. YES, NO and CANCEL options. If the user selects YES, then #Proceed return 1. If the user
  13. selects NO, then #Proceed returns 0. Otherwise, #Proceed returns -1.
  14. Note that a user interface may not be available when in graphics mode on some platforms.
  15. Parameters
  16. ==========
  17. Return Values
  18. =============
  19. 1, 0 or -1 depending on the user's selection
  20. Examples
  21. ========
  22. .. code-block:: blitzmax
  23. ' proceed.bmx
  24. result=Proceed("Are you sure you want to continue?")
  25. print result
  26. See Also
  27. ========