* * *

Author Topic: problem with easy program  (Read 439 times)

godik

  • New member
  • *
  • Posts: 14
problem with easy program
« on: October 20, 2018, 07:26:30 pm »
please can you help me i am so bad in this program ...
https://ctrlv.cz/hJxP

Blaazen

  • Hero Member
  • *****
  • Posts: 2654
  • POKE 54296,15
    • Eye-Candy Controls
Re: problem with easy program
« Reply #1 on: October 20, 2018, 07:55:53 pm »
Braces are not needed around Edit3. And assignment is always :=.
Code: Pascal  [Select]
  1. if a>b then Edit3.Text:=intToStr(a)
  2.   else Edit3.Text:=intToStr(b);
or
Code: Pascal  [Select]
  1. if a>b then Edit3.Text:=intToStr(a)
  2.   else if b>a then Edit3.Text:=intToStr(b)
The first writes b if numbers are equal. The second will not write anything if numbers are equal.
Lazarus 2.1.0 r59474M FPC 3.3.1 r40247 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.14

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

wp

  • Hero Member
  • *****
  • Posts: 5034
Re: problem with easy program
« Reply #2 on: October 20, 2018, 08:02:18 pm »
Please don't use external file servers for your code, your submission may not be available any more when somebody else has the same problem as you and seeks a solution in this post. Therefore, paste your code lines directly here into the edit box, then press the button "#" above the edit box to hightlight it as Pascal. You can also add files using the "Attachments and other options" - note however, that the file size is limited, and many file types are not allowed. So, just put all files into a zip which is accepted.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

godik

  • New member
  • *
  • Posts: 14
Re: problem with easy program
« Reply #3 on: October 20, 2018, 08:11:48 pm »
Okay i will and sorry i didnt know that

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus