Results 1 to 3 of 3

Thread: data structure in eVB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    110

    data structure in eVB

    i want to store all employee related info under a single object called oEmp...

    oEmp.Name
    oEmp.Address
    oEmp.Email

    how do i achieve this in eVB ?
    Anis Bombaywala

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    eVB??

    In VBA/VB you can declare a type
    VB Code:
    1. Type AllData
    2.     name as string
    3.     dob as date
    4.     ismale as boolean
    5. end type

    Then you declare a variable of type AllData, and you can set the internal properties
    VB Code:
    1. dim AData as AllData
    2.  
    3. AllData.name = "The Name"
    4. AllData.dob = cdate("01 Jan 2000")
    5. AllData.ismale = true

    Or something like that.

    Is that what you were thinking of?


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    110

    no i wanted it for e(embedded)VB

    for Pocket PC development.
    Anis Bombaywala

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