943,708 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Jan 14th, 2009
0

Re: Substraction code in MSFlex Grid

Thanx to all of you, teachers... I'm sorry for being so dumb before this.. Hehe.. It was alreasdy solved.. But, the 8th column need to be changed ti 7th column.. K, thanx lot..
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. [Private Sub cmdCalculate_Click()
  2. Dim i As Integer
  3. Dim TAmt As Currency
  4. TAmt = 0
  5. For i = 1 To Grd.Rows - 1
  6. TAmt = TAmt + Val(Grd.TextMatrix(i, 7))
  7. Next
  8. TAmt = Val(txtBudget.Text) - TAmt
  9. txtBalance.Text = Format(TAmt, "0.00")
  10. End Sub]
Last edited by Ancient Dragon; Jan 14th, 2009 at 8:51 pm. Reason: add code tags
Reputation Points: 10
Solved Threads: 0
Light Poster
nor_d83 is offline Offline
28 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Page setup + Print titles
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Any One Help me about UPDATING file in the Text .





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC