Circle - Syntax Error? lazarus / 39-Graphics ---------------------------------------------------------------------- habop73 · 2023-02-04 18:15 I want to draw a Circle with die command-line "Circle (X, Y, Radius);". When compiling the program this line produces the following Syntax Error: "." expected, but "(" found. Why? Here ist the complete Programm-Code: PROGRAM Circle; USES Graph; VAR   gd, gm: Integer; BEGIN   gd := Detect;   InitGraph(gd, gm, '');   if GraphResult <> grOk then   begin     Writeln('Fehler beim Initialisieren des Grafikmodus.');     Halt(1);   end;   Circle (100,100,50);   readln;   CloseGraph; END. ---------------------------------------------------------------------- KodeZwerg · 2023-02-04 18:23 I just change Integer to SmallInt and it works like it should. ---------------------------------------------------------------------- bytebites · 2023-02-04 18:35 Change program name. ---------------------------------------------------------------------- Roland57 · 2023-02-04 19:08 And use appropriate tags (button #) when you post code, bitte. ---------------------------------------------------------------------- circular · 2023-02-04 21:28 Maybe the name of the program interferes and it thinks you want something in the program Circle. I suggest to rename the program (at the top of the file). ---------------------------------------------------------------------- TRon · 2023-02-05 02:37 Quote from: bytebites on February 04, 2023, 07:35:33 pmChange program name. Quote from: circular on February 04, 2023, 10:28:53 pm... I suggest to rename the program (at the top of the file). But but but.. but ... but I really want my program to be named circle  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Graph.Circle(100,100,50); ---------------------------------------------------------------------- Bogen85 · 2023-02-05 02:49 Quote from: TRon on February 05, 2023, 03:37:57 amBut but but.. but ... but I really want my program to be named circle  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Graph.Circle(100,100,50); ✓ This forum need a reaction area for each post... ---------------------------------------------------------------------- circular · 2023-02-05 07:25 ---------------------------------------------------------------------- loaded · 2023-02-05 09:05 In my experience, the closest polygon visually to the circle is the 41 diagonal. Let this be an example from me. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.Button1Click(Sender: TObject);varcenter:TPoint;radius:double;diagonal:array of TPoint;i:integer;begin    center:=Point(100,100);    radius:=50;    SetLength(diagonal,41);    for i:=0 to High(diagonal) do    begin    diagonal[i]:=point(    trunc(center.X +radius * sin(i*(2*pi)/High(diagonal))),    trunc(center.Y +radius * cos(i*(2*pi)/High(diagonal))));    end;    canvas.Polyline(diagonal);end; ---------------------------------------------------------------------- TRon · 2023-02-06 04:55 Quote from: Bogen85 on February 05, 2023, 03:49:10 amThis forum need a reaction area for each post... Thank you Bogen85 for your faith in my answer  You have a point though in that things could be improved a bit. Topic enhancements: Topic Solved Topic Solved Mod Topic Solved rateTopic Most Popular Topic Today Tagging System For Topics Post enhancement: Posts I liked Like Posts Good Post/Bad Post Mod Best Answer Best Answer Human behaviour: Post Karma For some bookkeeping Message Bookmarks Topics Created And Participated In For some fun: Blabberizer But, I haven't ran a SMF forum in ages (I have no idea about for which version of SMF the posted links are or if they work as intended or not). Also, I can perfectly well understand that adding more features is just a maintenance nightmare (waiting to happen). Not to mention that using some kind of rewarding system (karma/likes etc) probably will be abused by those that shall not be named  edit: sorry bookmarks seem to be present already. ---------------------------------------------------------------------- habop73 · 2023-02-07 10:50 Thanks for the anserws. That all worked fine! ---------------------------------------------------------------------- Bogen85 · 2023-02-07 13:03 Quote from: TRon on February 06, 2023, 05:55:11 amBut, I haven't ran a SMF forum in ages (I have no idea about for which version of SMF the posted links are or if they work as intended or not). Also, I can perfectly well understand that adding more features is just a maintenance nightmare (waiting to happen). I always kind of thought the particular look was purposeful, looking like something 15-20 years old and not using markdown was to reflect the "age/maturity" of the project... Quote from: TRon on February 06, 2023, 05:55:11 amNot to mention that using some kind of rewarding system (karma/likes etc) probably will be abused by those that shall not be named  Heh, well, as long as the number doing this low, and the their vote count subject to similar karma, that could work. ---------------------------------------------------------------------- Fred vS · 2023-02-07 13:16 Quote from: TRon on February 06, 2023, 05:55:11 am You have a point though in that things could be improved a bit. Post enhancement: Posts I liked Like Posts Good Post/Bad Post Mod Best Answer Best Answer Human behaviour: Post Karma Ho no, please, not those. Imho, the charm of Lazarus forum it is precisely that there are not all these sorts of medals which give a hierarchy. The number of posts is enough. ---------------------------------------------------------------------- TRon · 2023-02-07 13:31 Quote from: Fred vS on February 07, 2023, 02:16:01 pmImho, the charm of Lazarus forum it is precisely that there are not all these sorts of medals which give a hierarchy. I have the same problems/reservations with regards to having some sort of hierarchy. However, I also believe it can be very helpful to know which answer was the most appropriate. Whether  that is by TS or other more experienced members. I deem the best answer mod one of the better mods in that regards. Some threads are full of non-sense answers or answers that are repeated (sometimes even weeks later). Sometimes it is hard to filter out all this crap. Don't forget that some people that drop in from time to time truly believe that post-count (Hero Member, Junior member etc) tells something about the quality of the answers (which is just rubbish). btw: if this is going to be a full discussion then it might perhaps better to split off this discussion in its own thread. On the other hand I do not believe forum owner have any intention to add additional mods (reason as already provided). In which case there is no need for discussion ---------------------------------------------------------------------- Fred vS · 2023-02-07 13:39 Quote from: TRon on February 07, 2023, 02:31:32 pmHowever, I also believe it can be very helpful to know which answer was the most appropriate. Whether  that is by TS or other more experienced members. I deem the best answer mod one of the better mods in that regards. Ok, and who will decide for the best answer: ChatGPT, Bard or me? ---------------------------------------------------------------------- TRon · 2023-02-07 13:44 Quote from: Fred vS on February 07, 2023, 02:39:28 pmQuote from: TRon on February 07, 2023, 02:31:32 pmHowever, I also believe it can be very helpful to know which answer was the most appropriate. Whether  that is by TS or other more experienced members. I deem the best answer mod one of the better mods in that regards. Ok, and who will decide for the best answer: ChatGPT, Bard or me?  I quote myself "Whether  that is by TS or other more experienced members" But other Q&A boards usually let the TS do that. Only TS is able to decide whether the answer was good enough to solve the question/problem. Most people do not even bother though, as it is not mandatory to do so. It all has to do with etiquette. Some people are raised up very neatly in that they take the time to create an account, dig up a 5 year old thread just to say thank you to the person that provided an answer/solution to a problem. ---------------------------------------------------------------------- Fred vS · 2023-02-07 13:55 Quote from: TRon on February 07, 2023, 02:44:06 pmQuote from: Fred vS on February 07, 2023, 02:39:28 pmQuote from: TRon on February 07, 2023, 02:31:32 pmHowever, I also believe it can be very helpful to know which answer was the most appropriate. Whether  that is by TS or other more experienced members. I deem the best answer mod one of the better mods in that regards. Ok, and who will decide for the best answer: ChatGPT, Bard or me?  I quote myself "Whether  that is by TS or other more experienced members" But other Q&A boards usually let the TS do that. Only TS is able to decide whether the answer was good enough to solve the question/problem. Most people do not even bother though, as it is not mandatory to do so. It all has to do with etiquette. Some people are raised up very neatly in that they take the time to create an account, dig up a 5 year old thread just to say thank you to the person that provided an answer/solution to a problem. Maybe, the etiquette to add in addition of posts count could be "Registered date" to give a idea when appears the user. But, imho, no colors please. (We should do a new topic about this.)