|
-
Jun 12th, 2000, 03:03 AM
#1
Thread Starter
Hyperactive Member
How do you format items in the listbox without changing the value???
Items are percentages:
7.00%
7.25%
7.50%
etc
etc
Thanks,
Sal
-
Jun 12th, 2000, 03:45 AM
#2
Thread Starter
Hyperactive Member
I keep answering my own questions.
Code:
dblPrncpl = txtPrincipal.Text
dblRate = Val(lstInterest.Text)
dblRate = dblRate / 100
MonPmt = Pmt(dblRate / 12, intPmts, -dblPrncpl)
lblPayment = Format(MonPmt, "$###,###,##0.00")
My problem was that in the listbox of percentages (APR's) the % was conflicting with the pmt function.
Then, the light came on. Use the Val function to eliminate the percentage symbol conflict.
Hmmm, it worked!
Peace,
Sal
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
|