Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#INCLUDE problems....
Message
De
01/11/1999 17:24:07
Paul Wyett
Resource Link Software
Calgary, Alberta, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00285084
Message ID:
00285124
Vues:
17
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
Fil
Voir

Click here to load this message in the networking platform