Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and Windows NT
Message
 
 
À
08/01/2001 11:18:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00460607
Message ID:
00460610
Vues:
9
What is the code to create the user object? Is the path correct for the class library on the NT box? Do the same files exist?

>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform