Skip to content

Confirm

Narta Xaymar Dirks edited this page Oct 31, 2026 · 6 revisions
BlitzPlus

Confirm

Confirm:Int32 text:String, serious:Int32=0
Parameter Mode Type Default Description
text In String required The question.
serious In Int32 0 1 for the warning symbol, 0 for information. Defaults to 0.

Returns: 1 for OK, 0 for Cancel.

Description

Shows a question with an OK and a Cancel button and waits for the answer. Lines can be split with Chr$(13). The second parameter chooses a warning symbol instead of the information symbol.

Differences

  • The box is a message box of the operating system in front of the program's active window, not part of it. When the program runs without a screen it writes the text to the error output and answers 0.

Examples

Graphics 320, 240, 32, 2
If Confirm("Delete all saves?", 1) Then
	Notify "They are gone."
EndIf

Related Commands

ActiveObjects, AutoSuspend, CreateProcess, DebugObjects

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally