Sorry meant to include the way I define resources to show multiple buttons when using FrmCustomAlert:

resource
ALERT QuestionAlert CONFIRMATION
begin
  TITLE 'My Alert'
  MESSAGE '^1'           //text from second param of FrmCustomAlert gets
                         //filled in here
  BUTTONS 'OK' 'CANCEL'
end;

then I use FrmCustomAlert like so:

if FrmCustomAlert(QuestionAlert, 'Continue?', '', '',) =0 then   //0= OK
  //do something


Edward Jones wrote:
Define your message resource and then use FrmCustomAlert - it will return a value based on the button pressed, starting from zero for the left most button.


Edward Jones

karthik wrote:
hi everyone,

i want two button(one is "ok" and another is "cancel") in a alert box, what alert method i have to use, the methods, FrmCustomAlert etc having only single ok button

please tell me if anyone know

Thanks with,
karthik



--
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to