Recent

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

godik

  • New Member
  • *
  • Posts: 23
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: 3237
  • 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.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

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

wp

  • Hero Member
  • *****
  • Posts: 11833
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.

godik

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

 

TinyPortal © 2005-2018