Results 1 to 3 of 3

Thread: How to use arithmatical expression while preparing a billing software?

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    6

    How to use arithmatical expression while preparing a billing software?

    I am using VB 2010 & going to prepare a billing software for my small company. I need complete code to make the total price of a particular product after entering data in all text box field and final price will show. Also all text box excluding "basic price" will show default value. as "zero". When I select from database (stored in WindowsApplication1 as Pricelist.accdb) the "item description", same time the "basic price" and "unit" automatically shows in there field. But I am unable to addition / subtraction with other text box field.

    Please help me.

    (Find my attached picture to understand)
    Attached Images Attached Images  

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: How to use arithmatical expression while preparing a billing software?

    Code:
    Dim value1 as decimal
    Dim value2 as decimal
    
    If decimal.tryparse(textbox1.text, value1) andalso decimal.tryparse(textbox2.text, value2) then
        Textbox3.text = (value1 + value2).tostring("c")
    End if

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    6

    Re: How to use arithmatical expression while preparing a billing software?

    Thanks.... in advance.. I am trying with this...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width