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 strongm 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: *

  • Users: delphiman
  • Order by date
  1. delphiman

    How does one use the watch list?

    Something I have never been able to get my head around ever since Delphi 1 was released (I am now using Delphi 6 Enterprise) is how to use a "Watch". Sometimes I need to know When (say) MyTableMyField.value = (say) 100. When (say) MyTableMyField.value changes bearing in mind that to use the...
  2. delphiman

    Why does RoundTo not work for me?

    Case closed
  3. delphiman

    How can I do two simple calculations?

    Case closed.
  4. delphiman

    Why can't I multiply money with a numeric value as follows.

    gcaramia >What's your DB? Parodox table "tblMStock". Field "Item" is the required monetary value of the square area. Field "SqMtrs" is obvious and a numric value Field "CostPMetre" is obvious and a monetary value.
  5. delphiman

    Why does RoundTo not work for me?

    ...from "downunder" Mate! For studying my problem PROPERLY! THIS works. A star for you. :-) tblMStocksqMtrs.Value := RoundTo(tblMStockHght.Value * tblMStockWdth.Value, -2); KempCGDR >And note that posting something that is essentially the same problem in a new thread is frowned upon at...
  6. delphiman

    How can I do two simple calculations?

    towerbase Thanks Andrew! As usual you are a credit to this great website. KempCGDR >If you can't get your head around passing a variable into >a function then I really would advise you to do some >simpler stuff until you get used to programming. I apologize for not having been involved in...
  7. delphiman

    How can I do two simple calculations?

    gcaramia If you look carefully you will see that "RoundTo(1.234, -2) will be 1.23" as referred to be whosrdaddy is quite meaningless in my code Since I don't HAVE a 1.234 to "RoundTo". I have a FIELD VALUE tblThingTotSqMtrs.Value ... which could be ANYTHING. Including 1.234. Having added...
  8. delphiman

    Why can't I multiply money with a numeric value as follows.

    I have Math in the Uses clause but the following nevertheless won't work. Can someone please tell me why? tblMStockItem.Value := FloatToCurr(tblMStockSqMtrs.Value * tblMStockCostPMetre.Value);
  9. delphiman

    Why does RoundTo not work for me?

    ...clause but neither of the following will work for me. I need dm.tblMStockInitSqMtrs.Value to be limited to TWO decimal points. tblMStocksqMtrs.Value := RoundTo(tblMStockHght.Value * tblMStockWdth.Value); OR RoundTo(tblMStocksqMtrs.Value) := (tblMStockHght.Value * tblMStockWdth.Value);
  10. delphiman

    How can I do two simple calculations?

    >function RoundTo is in unit Math (D6 or later) >function FloatToCurr is in unit SysUtils So ...? How does that help me? How do I apply that in my code above?
  11. delphiman

    How can I do two simple calculations?

    Lovely! Now can someone tell me how to USE that information IN THE CODE which I have provided?
  12. delphiman

    How can I do two simple calculations?

    Thanks. :-) But you don't show how one APPLIES that information - using the above code? Are you saying I should declara a function RoundTo? If so what is it supposed to look like? The following isn't going to work because "1.234" is meaningless. function RoundTo(1.234, -2); Similarly...
  13. delphiman

    I can't update a table

    Try this ... FIRSTLY Create MyTable.db with DelphiDesktop whereby you have HisNo N * HisName A 20 Drop a TQuery (name it qryMyTable), TUpdate (name it updMyTable)and a TDataSource (name it dtsMyTable)on your form. Note that qryMyTableUpDatePropery must be updMyTable. SECONDLY In the SQL...
  14. delphiman

    How can I do two simple calculations?

    Problem A tblThingTotSqMtrs.Value := (tblThingHight.Value * tblThingWidth.Value); This results in a number such as 43.6743 whilst I need it to be 43.67 Problem B tblThingCost.Value := (tblThingTotSqMtrs.Value * tblThingCostPerSqMtr.Value); This won't even compile and results in exception...
  15. delphiman

    What are files _QSQ99.DB & DEL107.MB?

    Nice hearing from you again Steven! I am not using Interbase as the application is designed to be used on a stand-alone (Paradox) basis by single users. Where (if necessary) a LAN would easily suffice for expansion to other (local) systems. This is essentially because (as you will know)...
  16. delphiman

    What are files _QSQ99.DB & DEL107.MB?

    Thanks to my son (in Cape Town: South Africa who was programming in machine code at the age of 12 on my Sharp 3201) I (now in Melbourne Australia) now have the total solution to this problem. Which I think is worth adding here and is as as I got it from him :-) The first thing to do is backup...
  17. delphiman

    What are files _QSQ99.DB & DEL107.MB?

    ChrisGSchultz (IS/IT--Manageme) 9 Mar 05 22:24 It looks like your performing an SQL query Yup! Several ... but these have not caused complications in the past.It seems the problem is being created by the recent additional forms which I have included. I suspect I shall have to seriously...
  18. delphiman

    What are files _QSQ99.DB & DEL107.MB?

    I should have added the exact exception which I get which is as follows ... Project MyProg.exe raised exception class EDBEngineError with message 'Capability not supported. Insufficient memory for this operation. Table: C:\Program Files\LAB\MyProg\_QSQ131.DB."
  19. delphiman

    What are files _QSQ99.DB & DEL107.MB?

    These files are being created in the folder where my source files are. Upon running my project (from within the environment and whilst it is still loading the files) it has suddenly taken to giving me an exception which refers to _QSQ99.DB or (some similar file) to the effect that I have "not...
  20. delphiman

    How do I specify what I want in ShowMessage?

    Sorry guys! You have both got it wrong! The message is making a STATEMENT. It is not asking a question. My problem is that the following bit doesn't work :-) + dmStdAcc.qryGLGLNo.value + Any more suggestions?

Part and Inventory Search

Back
Top