Learn to code in Delphi | Part 8 | Calculator Example

แชร์
ฝัง

ความคิดเห็น • 24

  • @Ltg-c9r
    @Ltg-c9r ปีที่แล้ว +4

    Best IT teacher I know

  • @thedatasage
    @thedatasage 10 หลายเดือนก่อน +3

    Mr Long, have you considered writing a Delphi book? I would definitely be interested in buying a copy.

    • @MrLongITandCAT
      @MrLongITandCAT  10 หลายเดือนก่อน

      I'm compiling a set of notes that I will combine into one hopefully in the future soonish. If you get my exam guide document you'll have links to all the notes in that pdf.

  • @aishapatel731
    @aishapatel731 ปีที่แล้ว +3

    You are the besttt IT teacher imma not lie❤

  • @kc4me.123
    @kc4me.123 2 ปีที่แล้ว +7

    Hi do you mind doing a example on a calculator with rounding and square rooting please?

    • @MrLongITandCAT
      @MrLongITandCAT  2 ปีที่แล้ว +3

      Have you seen our video on Round and Square rooting. Here is the link: th-cam.com/video/2cUOO6mHp74/w-d-xo.html

    • @kc4me.123
      @kc4me.123 2 ปีที่แล้ว +2

      @@MrLongITandCAT thank you!

  • @michaherberts7691
    @michaherberts7691 9 หลายเดือนก่อน +2

    very gool video. But i miss the part, how to deal exeptions. eg. division by zero :-) or "aslfkha " as input .

    • @MrLongITandCAT
      @MrLongITandCAT  9 หลายเดือนก่อน +1

      We will get to that theoretically in the video about the types of errors. If you want to learn about the best why to deal with exceptions and errors then go to our playlists and check out the series on Error Checking.

  • @eclipticpk6312
    @eclipticpk6312 2 ปีที่แล้ว +1

    when i try and add two numbers like 2.5 and 10.5 which would make 13 it gives an error, what can I do

    • @MrLongITandCAT
      @MrLongITandCAT  2 ปีที่แล้ว +9

      Are you using real numbers instead of integers. Need to change your input to:
      rNum1 := StrToFloat( edtNUm1.text ) ;
      etc and iAns must be an rAns of type real.

  • @damion4369
    @damion4369 10 หลายเดือนก่อน

    Hi Mr.Long
    I am currently running into a problem with my delphi 2010 program itself.
    When in the coding page and I hit ENTER it doesn't make a new line but skips to the next line.
    With this issue I can't really complete my code as I cannot make new lines for new instructions.
    Could you help?

    • @MrLongITandCAT
      @MrLongITandCAT  10 หลายเดือนก่อน

      On your keyboard should be an insert key. Just press this once. If you can't find it then look on the Delphi screen in design view. At the bottom you will se the words Overwrite with and arrow. Click on the arrow and select the insert option.

    • @damion4369
      @damion4369 10 หลายเดือนก่อน

      Thank you very much! We can always count on you!

  • @ilinarain8567
    @ilinarain8567 ปีที่แล้ว +1

    Thanks a lot

  • @damion4369
    @damion4369 10 หลายเดือนก่อน

    Hi Mr. Long
    I have been watching your content for about 2 years now.
    I have got a slight problem with my Calculator app. I followed your code exactly etc. yet when I want to put in decimal numbers it gives me an error. Please help!
    (I'm on delphi 2010)

    • @MrLongITandCAT
      @MrLongITandCAT  10 หลายเดือนก่อน

      What does the error message say?

    • @damion4369
      @damion4369 10 หลายเดือนก่อน

      It says "(3.1eg) is not a valid floating point value"

    • @MrLongITandCAT
      @MrLongITandCAT  10 หลายเดือนก่อน

      @@damion4369 Try using a comma instead of a dot for your decimal numbers. See if that works.

    • @damion4369
      @damion4369 10 หลายเดือนก่อน +1

      Hi Mr.Long thanks a lot it works!

  • @lebo7688
    @lebo7688 ปีที่แล้ว

    hi sir my program has no errors but still refuses to run

    • @spotsied
      @spotsied ปีที่แล้ว

      Did you make sure that you check your things
      Like if you already had a runned program on

  • @Gamer_4lyf
    @Gamer_4lyf 6 หลายเดือนก่อน

    Can we get a W in the chat