Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. BitsAndPieces

    To round a float value doesn't work correctly sometimes

    Thanks to all of You ! Even though none of your answers could do the complete job You gave me very good hints ! Thank You very much !! The routine that I will try now is a mixture of some of Your answers : For n > 0 : FloatToStr( Trunc(n*1000 + 0.5 + 0.00000001) / 1000 ) For n < 0 ...
  2. BitsAndPieces

    Simple TextFile as data example

    Hi, Steve ! Would those old Win 3.1 - inifiles do the job ? There is a Delphi unit inifiles.pas with all the functions you needed to access contents of *.ini-files.
  3. BitsAndPieces

    How do I covert a string (memo text) to an erray?

    Hi, Solve ! I would like to have a look at your calculator programm ! Especially I am interested in the way you deal with operator priorities !?!? Can you send me a copy of your source code, please ?
  4. BitsAndPieces

    How to detect that memo is restored to the original text?

    Hi, MF ! I believe that monitoring all the user's actions like Inserting, Deleting, Replacing and so on would lead to a really huge event handler. An easier way to detect a change to the memo text is to make a copy of the initial memo text before you let the user edit the memo. If your...
  5. BitsAndPieces

    To round a float value doesn't work correctly sometimes

    I recently found out that FloatToStrF(Value, Decplaces) sometimes makes mistakes !! I wanted to have 23.0005 to be rounded to 3 decimal places and put into a string. And I got '23.000' !?!? When I tried the same with 12.0005 I got '12.001' !!! I could find out that 23.0005 was not really...
  6. BitsAndPieces

    Grid losing DataSource

    Hi Steve ! I've had this problem too sometimes. Last week again. I am not sure but I think the reason is a change in the installed packages or components : The week before last week the datamodule was edited by one of my collegues. That guy had installed a new package or component that I did...

Part and Inventory Search

Back
Top