Joao,
Foxpro.h has #DEFINEs for these values and many more. You should make a habit of including it, and saving yourself the trouble of "reinventing the wheel". In order for these to be available to your entire application, the #INCLUDE command should appear near the top of your Main program or module (menu, etc.).
Dana
>in the init event I have
>#INCLUDE 'aplic.h'
>
>in aplic.h i have
>*-- MsgBox return values
>#DEFINE IDOK 1 && OK button pressed
>#DEFINE IDCANCEL 2 && Cancel button pressed
>#DEFINE IDABORT 3 && Abort button pressed
>#DEFINE IDRETRY 4 && Retry button pressed
>#DEFINE IDIGNORE 5 && Ignore button pressed
>#DEFINE IDYES 6 && Yes button pressed
>#DEFINE IDNO 7 && No button pressed
>
>and when i refered any of the defined constant in aplic.h i got
>variable 'IDOK' is not found
>
>what to do ?!
>
>Thank you all
>
>João
Where's the damned Any Key?...too late