Results 1 to 4 of 4

Thread: Display leading and trailing zeros

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Answers
    3

    Display leading and trailing zeros

    Hi all ,

    In my form how could i display zeros whein my focus lost a text box. if there are no enteries in last text box, if enteries there in the text box autoamatically .00 has to appear along with the interger value entered in the text box


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Display leading and trailing zeros

    You need to format the values in the textbox for the purpose on the lost focus event of the control.


  3. #3

    Re: Display leading and trailing zeros

    Even though it is bit a lengthy process the alternate way is
    Dim d1 As Decimal = Trim(TextBox1.Text)
    Dim d2 As Decimal = "0.00"
    Dim d3 As Decimal
    d3 = d1 + d2
    TextBox1.Text = CStr(d3)


  4. #4
    Junior Member
    Join Date
    Feb 2008
    Answers
    17

    Re: Display leading and trailing zeros

    what r the isolation levels in sql server2000..


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact