Results 1 to 5 of 5

Thread: How can I find out if a structure is empty?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    How can I find out if a structure is empty?

    Ahh, I had this problem before and I guess I solved it, but I forgot....

    You can't use the = operator for structures, and I guess you cant use Is Nothing... So lets say I have a structure, how can I check to see whether it is empty or not?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181
    Structures CAN'T be empty! - a structure must contain at least one instance member variable or Event declaration.
    Wind and waves resolves all problems.

  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    yeah

  4. #4
    Hyperactive Member
    Join Date
    Feb 2002
    Posts
    261
    You could put a boolean value inside the structure to indicate whether the data has been set.

  5. #5

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by cim3
    Structures CAN'T be empty! - a structure must contain at least one instance member variable or Event declaration.
    I didnt mean that Hu Flung Dung got the idea

    well I guess vb.net doesnt provide a way, I'll make my own boolean var. tnx
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

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