Hi!Using the @Prompt([YesNoCancel]), I would like the default button to be “No” instead of “Yes”. Is that possible …?
Thanks!
// Morten
Hi!Using the @Prompt([YesNoCancel]), I would like the default button to be “No” instead of “Yes”. Is that possible …?
Thanks!
// Morten
Subject: RE: @Prompt - change default button …
hey i don’t know about @prompt but it works using the Messagebox in the following way:-
try this-
Messagebox “Message”, 4+32+256,“Messagebox_title”
it selects by default “No” option
Subject: RE: @Prompt - change default button …
Instead of harding coding “256” into the code, it will be easier to read and maintain if you will use the LotusScript constants.
Const MB_DEFBUTTON1 = 0 ’ First button is default
Const MB_DEFBUTTON2 = 256 ’ Second button is default
Const MB_DEFBUTTON3 = 512 ’ Third button is default
…
If Msgbox( Question$, MB_YesNo + MB_IconQuestion + MB_DefButton2, Title$ ) = IDNo Then
Msgbox “Action canceled.”, MB_IconInformation, “No Action Taken”
Exit Sub
End If