Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and Windows NT
Message
De
08/01/2001 11:18:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
VFP and Windows NT
Divers
Thread ID:
00460607
Message ID:
00460607
Vues:
49
Hi,everybody!

I have a problem with some code in Windows NT. Well, I have an application that works very well in windows 9.x, but when executed in NT, it's have that effect of an application which doesn't have a READ EVENTS in main.prg... After some study, we found that the error is in the following excerpt of code (which is inside my main.prg):

Set CLASSLIB TO C:\DESENVOL\FRAMEWORK\LIB\CLASS\FORMS ADDI
frmLogin = CREATEOBJECT("frmLogin")
frmLogin.Show

If TYPE("oUsuario")="O"
If EMPTY(oUsuario.cLoginName)
Clear ALL
Clear EVENTS
SET SYSMENU TO DEFAULT
Else
Open DATA UNIBOX SHAR
Do MAIN.MPR
Set DELE ON
Read EVENTS
Endif
Endif

Well, in my frmLogin form, if the user put the right name and password, I create an object called oUsuario and fill its propertie cLoginName with the name of the user, and call a READ EVENTS. If the user cancels the login, or fills with wrong information, I don't create oUsuario object, and the program will finish. The problem is: in NT, it seems like it never create my oUsuario object.

Does anybody have any clue?

Thanks in Advance.
Claudio Lassala
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform