I
IntraRELY
Hello,
I am recieving an error message, that is from a 3rd Party component
(www.webcabcomponents.com/dotNET/dotnet/bonds/index.shtml), but wanted to
get your imput if it is my problem. I am trying here becuase I need it fixed
now and their support takes at a minimun 1 day. Thanks.
"Reference to a Non-Shared member requires an object reference." -- I dont
know what that means
I get a blue line indicating an error under the word "YieldToMaturity"
Here is my VB.NET Code
Imports WebCab.Libraries.Finance.Bonds.TreasuryPrice
--------------------------------------------------------------------
Dim buyYield As Double = YieldToMaturity(sellPrincipal, sellPrice,
lastCouponDate, tradeDate, settlementDate, paymentDates, maturityDate,
couponAmounts, "NEW_YORK", basis)
I have I Added a Reference in Visual Studio.NET w/in the project to the
WebCab.Libraries.BondsDemo.dll file. I know I am passing the correct data
types to the method. VS.NET is picking up the intellisense, so it should be
referencing it.
Here is the help file syntax:
'YieldToMaturity(
' double principleSum,
' double marketPrice,
' DateTime previousCouponDate,
' DateTime evaluationDate,
' DateTime settlementDate,
' DateTime[] paymentDates,
' DateTime maturityDate,
' double[] couponPayments,
' BusinessCalendar businessCalendar,
' string dayCountConvention
')
TIA,
Steve
I am recieving an error message, that is from a 3rd Party component
(www.webcabcomponents.com/dotNET/dotnet/bonds/index.shtml), but wanted to
get your imput if it is my problem. I am trying here becuase I need it fixed
now and their support takes at a minimun 1 day. Thanks.
"Reference to a Non-Shared member requires an object reference." -- I dont
know what that means
I get a blue line indicating an error under the word "YieldToMaturity"
Here is my VB.NET Code
Imports WebCab.Libraries.Finance.Bonds.TreasuryPrice
--------------------------------------------------------------------
Dim buyYield As Double = YieldToMaturity(sellPrincipal, sellPrice,
lastCouponDate, tradeDate, settlementDate, paymentDates, maturityDate,
couponAmounts, "NEW_YORK", basis)
I have I Added a Reference in Visual Studio.NET w/in the project to the
WebCab.Libraries.BondsDemo.dll file. I know I am passing the correct data
types to the method. VS.NET is picking up the intellisense, so it should be
referencing it.
Here is the help file syntax:
'YieldToMaturity(
' double principleSum,
' double marketPrice,
' DateTime previousCouponDate,
' DateTime evaluationDate,
' DateTime settlementDate,
' DateTime[] paymentDates,
' DateTime maturityDate,
' double[] couponPayments,
' BusinessCalendar businessCalendar,
' string dayCountConvention
')
TIA,
Steve