Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and Windows NT
Message
From
08/01/2001 11:18:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VFP and Windows NT
Miscellaneous
Thread ID:
00460607
Message ID:
00460607
Views:
50
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
Next
Reply
Map
View

Click here to load this message in the networking platform