|
-
Jul 15th, 2005, 05:51 PM
#1
Thread Starter
Hyperactive Member
Another Math Display
ok this is what I need to do: I need to take a number from a text box(A)... and then take another number from another text box(B) and subtract the number (B) from A until there is a zero amount...
here is the tricky part:
I need to display it in a table like so: ( ---- used for alignment)
----------BALANCE-------AMOUNT PAID
1---------1000.00--------$100.00
2----------900.00--------$100.00
3----------800.00--------$100.00
4----------700.00--------$100.00
etc etc etc
the only thing I can think of is the last payment could in theory be less than normal payments... for example the account could have a standard payment of $100.00 but if the final payment only needs to be $68.00 for example then I need to reflect that information as well...
This information is not connected to a database just based on input from text boxes on the form... I need to "count" the rows as well (1,2,3,4) can anyone tell me how to calculate and display this data in a table based on user input?
THANKS IN ADVANCE!!
Anjari
Last edited by Anjari; Jul 15th, 2005 at 06:00 PM.
-
Jul 15th, 2005, 06:01 PM
#2
Re: Another Math Display
something like this:
Code:
dim iTBa as integer = cint(A.text)
dim iTBb as integer = cint(b.text)
dim iCount as integer = 1
While iTBa>0
iTBa-=iTBb
'stick itba icount and itba in a label etc
iCount +=1
end while
That's assuming Textbox A is divisable by B.....
TPM
-
Jul 15th, 2005, 06:52 PM
#3
Thread Starter
Hyperactive Member
Re: Another Math Display
I will try this but will it format the results in a table like I need it?
Anjari
-
Jul 18th, 2005, 10:56 AM
#4
Re: Another Math Display
If you put it in correctly
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|