doglin82
April 8th, 2010, 10:54 AM
Hi I am not too sure about the syntax , since I am still very new to VB..
So this is what I have in a class
Public Class DocumentDelivery
Implements IDisposable
Public Shared RenderList As New List(Of Byte()())
Public Function Initialize(ByRef env As et.User.SystemCommon.Environment, ByRef errs As et.Exec.Utilities.ErrorCollection) As Boolean
m_env = env
m_errs = errs
'set the default capacity List to 1
RenderList.Capacity =1
Return True
End Function
I didn't write the existing class, I am just making changes to it. I am not sure why there is no constructor. However, Intialize() is called every time a the class is created.
Right now, I set the default capacity of the RenderList, (the class variable) to 1 in Initialize method.
Is there a way to set the capacity outside of the initialize method? what is the syntax? Please let me know.
So this is what I have in a class
Public Class DocumentDelivery
Implements IDisposable
Public Shared RenderList As New List(Of Byte()())
Public Function Initialize(ByRef env As et.User.SystemCommon.Environment, ByRef errs As et.Exec.Utilities.ErrorCollection) As Boolean
m_env = env
m_errs = errs
'set the default capacity List to 1
RenderList.Capacity =1
Return True
End Function
I didn't write the existing class, I am just making changes to it. I am not sure why there is no constructor. However, Intialize() is called every time a the class is created.
Right now, I set the default capacity of the RenderList, (the class variable) to 1 in Initialize method.
Is there a way to set the capacity outside of the initialize method? what is the syntax? Please let me know.