I defined a Type:
[vba]
Public Type MyType
'...
End Type
[/vba]
I declared an array of MyType:
[vba]Dim obj_MyType() As MyType[/vba]
How could I find out if there's nothing inside?
I tried:
[vba]If obj_MyType Is Nothing[/vba]
But it gives a Type error missmatch. I also tried with Is Empty And IsNull...



 
			
			 
					
				 
                    
            
            
         
					
					
					
						 Reply With Quote
  Reply With Quote 
                    
            
                 
            
            
        
 
                    
            
            
         If it's for production code, maybe I'd go that far. But if I am just doing something Q&D... No way am I taking the time to do that.
 If it's for production code, maybe I'd go that far. But if I am just doing something Q&D... No way am I taking the time to do that.  
  Originally Posted by Oorang
 Originally Posted by Oorang
					
				 
            
            
         
 
 
						 
  .... but
 .... but