Hi,
Anyone knows how to clear a privat type variable?
Example:
How about clearing a private type variable (that have like a million types) in just one line?Code:'//Clear string variable: MyDATA$ = "" MyDATA$ = VbNullString '//Clear long variable: MyNUM& = 0
How do we do it in vb6? (Please don't tell me that I have to clear each Variable of that type manually?Code:Private Type TYPE1 X1 As String X2 As Long X3 As Byte X4 As Integer 'etc... End Type Private Sub Form_Load() Dim MyVAR As TYPE1 MyVAR.X1 = "Teste" '//Clearing: MyVAR = Nothing Set MyVAR = Nothing MyVAR = Empty MsgBox MyVAR.X1 '// Should return nothing (""). End Sub '... 'None of these 3 clearing lines work, I know.)


)
DoEvents
Reply With Quote
