The declare statement
Private Declare Sub COMA Lib "COMA32.dll" (ByRef NoChain As Long, ByRef Decay As Double, ByRef Conv As Long, ByRef NoComp As Long, ByRef InitTime As Double, ByRef NoChgTran As Long, ByRef ChgTranTime As Double, ByRef NoChgSou As Long, ByRef ChgSouTime As Double, ByRef NoSou As Long, ByRef NucSou As Long, ByRef CompSou As Long, ByRef InpSou As Single, ByRef InitInvFlag As Long, ByRef NoChgInv As Long, ByRef ChgInvTime As Double, ByRef NoOutTime As Long, ByRef outTime As Double, ByRef OutOption As Long, ByRef NoOut As Long, ByRef outComp As Long, ByRef IDisc As Long, outVal As Double, ByRef IFail As Long, ByRef InpInitInv As Single, ByRef CompFrom As Integer, ByRef CompTo As Integer, ByRef InpTranRate As Single, ByRef SetInvToZero As Integer, ByRef NoSetComp As Integer, ByRef SetToZeroComp As Integer, ByRef NoOutVal As Integer, ByRef InpNoTran As Integer)
The call statment
Call COMA(NoChain, Decay(1), Conv, NoComp, InitTime, NoChgTran, ChgTranTime(ChgTranTimeArray), NoChgSou, ChgSouTime(ChgSouTimeArray), NoSou, NucSou(NucSouArray), CompSou(CompSouArray), InpSou(InpSouArray, InpSouArray), InitInvFlag, NoChgInv, ChgInvTime(ChgInvTimeArray), NoOutTime, outTime(1), OutOption, NoOut, outComp(1), IDisc, outVal(1, 1, 1, 1), IFail, InpInitInv(1, 1), CompFrom(1), CompTo(1), InpTranRate(1, 1), SetInvToZero, NoSetComp, SetToZeroComp(1), NoOutVal, InpNoTran)
Thats for any help.