Results 1 to 5 of 5

Thread: [RESOLVED] Global object

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    97

    Resolved [RESOLVED] Global object

    Hello!

    At programm start I save user's profile.
    Further depending om values of user profile i show pertenant forms.
    How may i transfer (or declare) the user profile to be accessable for all forms.

  2. #2
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    419

    Re: Global object

    in a module put

    VB Code:
    1. Global Profile_name As string
    If a post has been usefull then Rate it!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    97

    Re: Global object

    Hello!
    Thank you , I work with 2005.
    I did following:
    Module GlobalDec
    Class UserInfo
    Private ID As String
    Private Name As String
    Private PSW As String
    Private Language As String
    Private Level As String
    ......................................................
    End Class
    Global Users_Profile As New UserInfo --->Here I got "Syntax error"

    End Module

  4. #4
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    Re: Global object

    Public Users_Profile As New UserInfo

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    97

    Re: Global object

    Thank You it works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width