Hi all I am trying to take this correspondence course on vb
(btw I do not recommend Harcourt Learning Direct as they used to be ICS) anyway the instructors refuse to help if you can't do one of the programming excersises because the are "like a test". Now I am pretty bad at math but am trying to fill an array with the balance gained for each percent of interest over various time spans. I can get the array filled but it only fills with zeros 8(
I know my code is horrid but can someone tell me where I am going wrong?
Won't this fill the array correctly? or at least shouldn't when I display the array on the grid I not get zeros even if I have the formulas wrong?Code:'Resize the array for the balances ReDim arrPeriods(Rates + 1, Rows + 1) As Long For I = 1 To Rates For B = 1 To Rows arrPeriods(I, 0) = InvesAmt * (1 + Rates) * Periods arrPeriods(0, B) = InvesAmt * (1 + Rates) * Periods / Years Next B Next I
Sadil
[Edited by Sadil on 04-15-2000 at 11:56 PM]




Reply With Quote