Information générale
Catégorie:
Codage, syntaxe et commandes
It comes up undefined when the code is executed from a command button using the constant MB_ICONINFORMATION, which has been defined as 64 in Foxpro.h, which has been included in efgconst.h with a #include statement.
I changed the code to call the foxpro.h file from main, and the constant comes up in a messagebox as equal to 64,
*main.prg
#include Foxpro.h
messagebox(str(MB_ICONINFORMATION))
*end main
which is correct. The code that causes the error is in a click event on an application object created by the main application.
lcMsgText = "Invalid User or Password. Try again."
---> lnDialogType = MB_ICONINFORMATION + MB_OK
=MESSAGEBOX(lcMsgText, lnDialogType, oApp.cAppName)
---> causes error variable MB_ICONINFORMATION is not found
Why is it defined at one point and then causes the error?
Paul
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement