-
Content Count
180 -
Joined
-
Last visited
-
Days Won
2
David Hoyle last won the day on January 1
David Hoyle had the most liked content!
Community Reputation
66 ExcellentTechnical Information
-
Delphi-Version
Delphi 11 Alexandria
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
What version of RAD Studio/Delphi are you using?
-
Project to create a language definition in BNF format started
David Hoyle replied to TurboMagic's topic in RTL and Delphi Object Pascal
If people can decide on the grammar to be used I can translate what I've put into the repository. -
Access class fields and properties with RTTI
David Hoyle replied to pyscripter's topic in RTL and Delphi Object Pascal
I can confirm that class variables and properties are not accessible in RS 11.2... Program ClassProppertyRTTI; {$APPTYPE CONSOLE} {$R *.res} Uses System.SysUtils, System.Rtti; Type TMyClass = Class Strict Private FGoodbye: Integer; Strict Private Class Var FHello: String; Strict Protected Public Class Property Hello: String Read FHello; Property Goodbye : Integer Read FGoodbye; End; Var C: TMyClass; Ctx: TRTTIContext; F : TRTTIField; T: TRttiType; P: TRttiProperty; Begin Try C := TMyClass.Create; Try Ctx := TRTTIContext.Create(); T := Ctx.GetType(C.ClassInfo); For F IN T.GetFields Do WriteLn('Field: ', F.Name); For P In T.GetProperties Do WriteLn('Property: ', P.Name); Finally C.Free; End; ReadLn; Except On E: Exception Do WriteLn(E.ClassName, ': ', E.Message); End; End. It only outputs FGoodbye and Goodbye. I didn't actually know this restriction in the RTTI. -
No GExperts formatter on Windows 11 with elevated IDE
David Hoyle replied to timfrost's topic in GExperts
Does the code formatter work if invoked manually using the menu system? If so, there is something in that environment capturing the keyboard shortcut before GExperts, it could even be something outside the IDE.- 4 replies
-
- windows11
- elevated ide
-
(and 1 more)
Tagged with:
-
Delphi 11 uses designide270.bpl instead of designide280.bpl and won't let me replace it!
David Hoyle replied to Al T's topic in Delphi IDE and APIs
I cannot remember (and I don't have RS available) but does the IDE's about dialogue not let you see what packages are loaded? The designide BPL may be being loaded regardless of a registry entry. -
Delphi 11 uses designide270.bpl instead of designide280.bpl and won't let me replace it!
David Hoyle replied to Al T's topic in Delphi IDE and APIs
You need to add it to the relevant registry key. -
Delphi 11 uses designide270.bpl instead of designide280.bpl and won't let me replace it!
David Hoyle replied to Al T's topic in Delphi IDE and APIs
Yes, if this is in RS11.2 BUT you should have an entry for designide280.bpl. Do you? -
Delphi 11 uses designide270.bpl instead of designide280.bpl and won't let me replace it!
David Hoyle replied to Al T's topic in Delphi IDE and APIs
It's an IDE design time package that is used by Open Tools API plugins. I do not believe there are any components in it. -
(replicable w/ source) Why do I always get Access Violation every time I rebuild ANY component? (Current solution is to Restart Delphi.. Why??)
David Hoyle replied to Al T's topic in FMX
Have you tried debugging the component package using a second IDE to see where the AV is being raised - hopefully it will show you a call stack that might help you isolate the issue. Does an empty package with no component registration cause an AV? In your component code, do you utilise any INITAILIZATION/FINALIZATION sections in your units to create or destroy objects? -
Delphi 11 uses designide270.bpl instead of designide280.bpl and won't let me replace it!
David Hoyle replied to Al T's topic in Delphi IDE and APIs
It is unlikely you will be able to change this with the IDE running. What does it say in the register under Known Packages and Known IDE Packages (i.e. does it reference the 270 there)? -
Isn't the grep results window not a first-class citizen of the IDE (dockable form) so it should be remember by the desktop layout (mine is).
-
Have you checked that the INI file exists with the value you have written?
-
In your saving code you use the EXE path and my.ini. In your restoration code you do not specify a path just the filename.
-
Besides fixing the INI naming issue are you making sure you are loading the file from the same folder?
-
The name of your INI files are different... save = my.ini and load = tabibi.ini.