Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add buttons to _MESSAGEBOX function?
#4
Code: (Select All)

 KillIt% = _MessageBox("FILE EXISTS", Z_File$ + " Exists\nOverwrite?", "yesno", "question", 0)
The "\n" is a C/C++ control character and does not work in Basic.

All three options are better than just yes/no.
Code: (Select All)

KillIt% = _MessageBox("FILE EXISTS", Z_File$ + "Exist -- Overwrite?", "yesnocancel", "question", 2)
If KillIt% = 1 Then
  Kill (Z_File$)
Else
  Z_File$ = _InputBox$("NEW FILE NAME", "Enter ZCM File Name", Z_File$)
  If Z_File$ = "" Then System
  GoTo StartZWrite
End If

StartZWrite:
Print "Ende"
Reply


Messages In This Thread
RE: Add buttons to _MESSAGEBOX function? - by Kernelpanic - 05-11-2024, 03:22 PM



Users browsing this thread: 1 Guest(s)