Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create User Object in code
Message
 
À
30/12/2004 11:39:38
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00973256
Message ID:
00973309
Vues:
19
I Changed to the class code to:
Public Class CurrentUserClass
    ' This class creates a structure that will store the current
    ' user information after they successfully login to the application.
    ' Example:
    ' Public oUser As CurrentUserClass.Currentuser
    ' oUser.LastName=dr.GetValue(3)
    ' oUser.FirstName=dr.GetValue(4)
    Public Structure Currentuser
        Private instanceID As Integer
        Public Shared FirstName As String
        Public Shared LastName As String
        Public Shared UserID As Integer
        Public Shared UserName As String
        Public Shared LoginTime As String
        Public Shared Workstation As String
        Public Shared InactivityTimer As Boolean
        Public Shared InactivityMins As Integer
        Public Shared supervisor As Boolean
    End Structure
But I'm still not able to see the oUser class from the second form, I changed the code in the main form where oUser is created to :

Public Shared oUser As CurrentUserClass.Currentuser

Still no luck
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform