Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
Debugger / Re: FpDebug likely bug
« Last post by Martin_fr on Today at 09:10:31 pm »
First of all, it would be an editor bug.

The debugger (any of them) only delivers the content of the window (as text), but nothing else.

The yellow hint is created using IpTurboProDsg package => so if uninstalled, the grey hint is used. Yet, then all hints would be grey.

Probably not applying to your case either (as it looks like the source editor has focus / the very editor to which the hint belongs). On Windows, if you have more than one screen, and they have different DPI settings, and a window on one screen is focused, but the mouse hovers over a window on another screen, the wrong dpi is used to calculate the hint offset. => Btw, such DPI mixes even affect apps like the windows explorer, to have incorrect display in some cases...)

As for the position, I have no idea, but maybe it is a side effect of the below (if the below applies....)

The yellow hint is a html hint. I am not aware of any issue like the following, but it would not be impossible.... The content of the hint, might be such that it breaks the processing into html. If such breakage could happen (which I don't know), then I don't know if there would be a fallback to the grey hint....
For starters the "&" may have suddenly meaning or side effect...



Actually, after typing the above, I just made the test.
Code: Pascal  [Select][+][-]
  1. program Project1;
  2. var
  3. &a:integer;
  4. begin
  5.   &a := 123;
  6.   a := 123
  7. end.

Hovering the "a" is fine. but the "&a" is not.

Further this may even be a codetool bug => explaining why the hint has no other content (e.g. no position of declaration).
In the above code example, while NOT debugging, I can hover the "a" and get some info, but not on the "&a" (neither of the two).

And the same goes for ctrl click jump attempts.

So, at this time, I say this is primarily a codetools bug, but there may be additional issues in the hint handling code...
2
General / Re: Web Applications with Pascal
« Last post by Handoko on Today at 08:56:29 pm »
@Nate897

If you're good in Pascal, you may want to try using FPC to build web services. If you're not good in Pascal, there are many other options available. If you like it, use it. If it works for you, keep using it.

If you want to try and learn more, here:
https://wiki.lazarus.freepascal.org/fcl-web
https://www.getlazarus.org/learn/tutorials/examples/webserver/
https://wiki.lazarus.freepascal.org/fpWeb_Tutorial

This is support forum for answering questions for users who have problem using Pascal. I wonder what kind of discussion you want to get.

Moderators, please lock this discussion or better delete it. This kind of discussion will start flames of war.
3
After looking into it. It looks like OpenAI removed the assistant sharing quite some time ago. Probably because the API is tied to accounts and thus charges would be applied to the Assistant owner.
4
Hey Benibela,

but then I do not have an official hash to compare it with

If you drop the PR I will gladly test it for you.

And, like @Hartmut mentioned, you can always double check with the help of the baseline program.

Just make sure you've read that we are moving from CRLF to LF only terminated input file.

If your program depends on the CRLF line endings, please account for the change.

Cheers,
Gus
5
General / Colore celle StringGrid
« Last post by JuanBell on Today at 08:47:28 pm »
Salve a tutti
per favore mi dite come so colora una specifica cella di StringGrid con un colore data una condizione.
Grazie dell’attenzione.
for J:=1 to 10
do begin
L:=L+1;
LS:=IntToStr(L);
If not Odd(I) Then CC:='Z' e colora cella in verde
 else CC:='A'; e colora cella in rosso
StringGrid1.Cells[I,J]:=CC;
end;
end
6
Hey Handoko,

Sorry for the late reply.
Here they are.

Thank you so very much for this.
In the mean time I did not come to check on this since I was expecting a PR and someone else was kind enough to split the files.

You can check them on the repo: https://github.com/gcarreno/UnofficialObjectPascalLogos

Cheers,
Gus
7
General / Re: Multidimensional arrays as parameters
« Last post by KodeZwerg on Today at 08:34:38 pm »
Not much tested but in that direction I guess I would do ...
Code: Pascal  [Select][+][-]
  1. uses Variants;
  2.  
  3. procedure DeepCopyArray(const ASource: Variant; var ATarget: Variant);
  4. var
  5.   i: Integer;
  6.   SourceArray: Pointer;
  7.   TypeInfo: Pointer;
  8. begin
  9.   if VarIsArray(ASource) then
  10.     begin
  11.       DynArrayToVariant(ATarget, SourceArray, TypeInfo);
  12.       for i := VarArrayLowBound(ASource, 1) to VarArrayHighBound(ASource, 1) do
  13.         DeepCopyArray(ASource[i], ATarget[i]);
  14.     end
  15.   else
  16.     ATarget := ASource;
  17. end;
8
Third party / Re: Ho Ho Ho IntraWeb in Lazarus!!!
« Last post by Thaddy on Today at 08:31:29 pm »
and <sigh> since my reports are not fixed properly since 2007, I would not use it.
Just google on the CVE's
What is more worrying is that NIST still has not approved a supposed fix from my - our - report in 2007. They are still waiting for it.....
AtoZ is responsible for a fix, not me, we simply reported it in mintute detail.
Both the issues I was involved in are NOT fixed..
9
Linux / Re: System.Now gives timestamp which is eight hours back
« Last post by alpine on Today at 08:29:19 pm »
Thanks for the replies!

It actually was due to some OS misconfiguration, I don't know how it happened...
Despite the right printout from the timedatectl, the command:
Code: [Select]
#cat /etc/timezone printed:
Code: [Select]
US/Central
and after dpkg-reconfigure tzdata with the right location, which was also preselected (?!) as it was set correctly (it wasn't) now it prints:
 
Code: [Select]
#cat /etc/timezone
Europe/Sofia

After the reboot it now seems to be OK.
Sorry for the noise.
10
Debugger / FpDebug likely bug
« Last post by 440bx on Today at 08:26:20 pm »
Lazarus v3.99 64 bit.

In the attached screenshot, the cursor was hovering over the "&type" field of the "low" statement on line 134.

I expected the little window showing the value of &type to be placed somewhere near the statement on line 134, instead the little window is on line 95 which is farther away than expected.

On a somewhat related note, on my system, usually the little window color is yellow but, this "far away" window color is grey.  Is there a good reason for that difference in color or should the different color be considered a bug ?
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018