func_system_confirm.rst 710 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. _func_system_confirm:
  2. =======
  3. Confirm
  4. =======
  5. Confirm -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. Confirm( text$,serious=False )
  10. Request user confirmation.
  11. #Confirm activates a simple user interface element requesting the user to select between
  12. YES and NO options. If the user selects YES, then #Confirm returns True. Otherwise,
  13. False is returned.
  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. True or False depending on the user's selection
  20. Examples
  21. ========
  22. .. code-block:: blitzmax
  23. ' confirm.bmx
  24. result=Confirm("Are you sure?")
  25. print result
  26. See Also
  27. ========