A
Al G
Hi,
I'm converting a bit of POP3 VB6 code to VB2005, and have run into this
error with the following code.
Can someone help me find out what I'm missing/doing wrong?
'holds the attachments
Class attachmentBlockParameter
Public cTypeAttach As String
Public cEncoding As String
Public cFileName As String
Public cAttachment As String
End Class
Public AttachBlock() = New attachmentBlockParameter() {}
Sub Main()
AttachBlock(1).cTypeAttach = "Base64"
' The previous line generates an "Object variable or With block
variable not set." Error
Console.WriteLine(" Attach Block Type=" &
AttachBlock(1).cTypeAttach)
Console.Read()
End Sub
Thanks, Al G
I'm converting a bit of POP3 VB6 code to VB2005, and have run into this
error with the following code.
Can someone help me find out what I'm missing/doing wrong?
'holds the attachments
Class attachmentBlockParameter
Public cTypeAttach As String
Public cEncoding As String
Public cFileName As String
Public cAttachment As String
End Class
Public AttachBlock() = New attachmentBlockParameter() {}
Sub Main()
AttachBlock(1).cTypeAttach = "Base64"
' The previous line generates an "Object variable or With block
variable not set." Error
Console.WriteLine(" Attach Block Type=" &
AttachBlock(1).cTypeAttach)
Console.Read()
End Sub
Thanks, Al G