Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Help with my project


Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2001, 10:15 AM
samidoo
Guest
 
Posts: n/a
Question Help with my project


Hi there,

I hope somebody could tell me where I am going wrong with the following code. I am doing a Investment Program and seem to be stuck.

For i = minimum To maximum Step 0.5

For Years = 1 To end_year Step 1

Select Case Years
Case 1, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50


MSFlexGridgrid.Cols = icolumn + 1
MSFlexGridgrid.Row = 0
MSFlexGridgrid.Col = icolumn
MSFlexGridgrid.Text = CStr(i)
icolumn = icolumn + 1

MSFlexGridgrid.Rows = irow + 1
MSFlexGridgrid.Col = 0
MSFlexGridgrid.Row = irow
MSFlexGridgrid.Text = CStr(Years)
irow = irow + 1

Case Else
End Select

Next Years
Next i

I also haven't put my calculation for the fill grids, a little puzzled with this one too.

Any suggestions?

Thanks
Sam

Reply With Quote
  #2  
Old 03-13-2001, 11:02 AM
adebuigny adebuigny is offline
Junior Contributor
 
Join Date: Sep 2000
Location: New Orleans
Posts: 197
Default Re: Help with my project

Not sure where you are having the problem, but my guess is that your step needs to be an intenger, not a decimal.

Try creating a var and making it equal to maximum times two, and change step to 1.

Good luck!

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->