Results 1 to 2 of 2

Thread: about Formatcurrency function

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2005
    Posts
    38

    about Formatcurrency function

    hey all i tried all the methods to convert my answer to dollars from my last post but they didnt work so could someone please help me out would ith elp that ok the label is where i have programmed to where i want the answer to be n its called lblFutureValues and i have a text box called txtAmount where i enter the amount of money invested now do i need to format that number to or just the number calculated in the label... the number is 4022.714375 n i want it to be $4022.71

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Re: about Formatcurrency function

    Hi,

    lblFutureValues.Text=FormatCurrency(Val(txtAmount.Text), TriState.True)

    will work for all amounts
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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