Public Shared Function payOff(ByVal origClient As Soma_Client) As Decimal Dim Client As Soma_Client = New Soma_Client Client = origClient.CloneVery useful. However, if I try to use it in a "list of" case, I get an error.
Public Shared Function payOff(ByVal origClientList As list(of Soma_Client)) As Decimal Dim clientList As list(of Soma_Client) = New list(of Soma_Client) dim ii as integer for ii = 0 to origClientList.count-1 clientList(ii) = origClientList(ii).Clone loopIn this case I get an "index out of range" error.
dim origClientRec as soma_client = new soma_client for ii = 0 to origClientList.count-1 origClientRec = origClientist(ii).clone clientList(ii) = origClientRec.clone loopI still get "index out of range" error, but it occurs on the