Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add buttons to _MESSAGEBOX function?
#2
You can make it return a 0 or 1 and get  Yes / No buttons with the following syntax.


        KillIt% = _MessageBox("FILE EXISTS", Z_File$ + " Exists\nOverwrite?", "yesno", "question", 0)
        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

I too would like the option for more buttons.   But you can do a lot with just a Yes/No option.
Reply


Messages In This Thread
RE: Add buttons to _MESSAGEBOX function? - by ahenry3068 - 05-11-2024, 07:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to add a Poll to a Thread Magdha 2 180 02-10-2026, 05:38 PM
Last Post: Magdha
Star Suggestion for new REPLACE$() function zaadstra 3 262 01-26-2026, 05:11 PM
Last Post: grymmjack
  Is there a menu function? Mad Axeman 17 1,093 12-17-2025, 04:43 AM
Last Post: SMcNeill
  _MessageBox ignores default button johngreening 2 616 04-27-2025, 07:34 PM
Last Post: hsiangch_ong
  _messagebox Z-Order ahenry3068 4 817 03-23-2025, 06:32 PM
Last Post: Kernelpanic

Forum Jump:


Users browsing this thread: 1 Guest(s)