Click to See Complete Forum and Search --> : How can I find out if a structure is empty?
MrPolite
Sep 19th, 2002, 08:51 PM
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?
cim3
Sep 20th, 2002, 08:31 AM
Structures CAN'T be empty! - a structure must contain at least one instance member variable or Event declaration.
PT Exorcist
Sep 20th, 2002, 10:33 AM
yeah
Hu Flung Dung
Sep 20th, 2002, 12:16 PM
You could put a boolean value inside the structure to indicate whether the data has been set.
MrPolite
Sep 20th, 2002, 03:39 PM
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 :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.