Jump to content

Ian Branch

Members
  • Content Count

    1435
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ian Branch

  1. Ian Branch

    InputQuery issue..

    Hi Team, D12.2. I am trying to get multiple inputs using InputQuery with the following code: procedure TForm12.Button1Click(Sender: TObject); var Values: array of string; begin SetLength(Values, 3); // Prepare for three input fields Values[0] := 'John'; // Default values Values[1] := '25'; Values[2] := 'London'; if InputQuery('User Information', ['Enter your name:', 'Enter your age:', 'Enter your city:'], Values, nil) then begin ShowMessage('Name: ' + Values[0] + sLineBreak + 'Age: ' + Values[1] + sLineBreak + 'City: ' + Values[2]); end; end; When run I getthe multiple inputs ok. Cancel works fine. If I click OK, I get an access violation. Is this a known issue? Does multi input work? Regards & TIA, Ian
  2. Ian Branch

    InputQuery issue..

    Ah Ha! Thank you. Much appreciated. Ian
  3. Hi Team, Does anybody know of any Delphi Programmers in Fiji?? There may be a Job Opportunity. Ian
  4. Ian Branch

    Delphi Programmers in Fiji??

    FYI- Using Delphi 12.1, no earlier. Just some of the 3rd Party libraries/components in use att. ElevateDB v 2.38 b2 - 16/12/2023 FastMM5 - Updated 24/08/2024 LMD Controls v 2024.4 - 06/07/2024 RosiComp Controls v 17.7 - 12/03/2024 EurekaLog v 7.12.0.634 B7 - 04/082024 Report Builder v 23.05 - 20/072024 nlhComponents v 1.0 – 18/08/2022 TeeChart v 9.0 – 28/02/2023 Infopower v 23.0.2.5 - 07/08/2024 TMS VCL UI Pack v 13.1.7.0 - 14/08/2024 Raize Components v 7.0 - 26/08/2021 SVGIconImageList - Updated 14/08/2024 ZylSoft IdleTimer v 1.49 - 26/11/2022 Drag&Drop Components - Updated 13/01/2024 ThinFinity v 3.5.1.100 - 17/02/2024 SmartInspect v 3.5.0.58 - 18/10/2023 SMExport v 4.99 - Scalabium Software - 20/08/2024
  5. Hi Team, I have the following constructor: ... ... private procedure LoadFilter; public wwSaveFilter1: TwwSaveFilter; constructor Create(AOwner: TComponent); override; // called before "FormCreate()" end; The code is this: constructor TChangesLogForm.Create(AOwner: TComponent); // called before "FormCreate()" begin inherited; // var lCloseForm := False; // case JSDialog1.Execute of 100: begin ChangesLog.TableName := 'ChangesLog'; iTable := 100; end; 200: begin // BePatientWarningArchive; // ChangesLog.DatabaseName := 'DBiArchive'; ChangesLog.TableName := 'AChangesLog'; iTable := 200; end; 300: begin // BePatientWarningBoth; // ChangesLog.TableName := 'vAllChangesLog'; iTable := 300; end; 400: lCloseForm := True; // end; // if lCloseForm then Abort; // end; JSDialog1 is a LMD Dialog. Based on this the indicated table is opened. ATT when the User is done he has to close the form and reopen it to look at a different table. How can I return to this input dialog when the User is finished with that Table? The idea is that the User could then select another Table or Exit/Close the form. Regards & TIA, Ian
  6. Ian Branch

    How do I return to the 'Constructor'??

    Hi Guys, Thank you for your inputs. Appreciated. The methodology was developed for a specific purpose, to determine the User's choice before the form was constructed/shown. I use it in multiple Apps. Some where there is only one form, others where the form is called from a menu. It does exactly what I wanted/needed. The idea of returning to the Dialog was just a whim I had to make things a little simpler for the User. FYI: The Dialog looks roughly like this, depending on the App: I have scrapped the 'whim'. Regards, Ian
  7. Ian Branch

    Version setting??

    Hi Team, D12.1 I may have the wrong tool but I used to have an option at the bottom of the IDE Projects sub menu that allowed me to manage the file version information. I thought it was MMX but I may have that wrong. Anyway, that option has disappeared. 😞 Can anybody advise? Regards & TIA, Ian
  8. Ian Branch

    Version setting??

    Found it! It was DDevExtensions by Andreas Hausladen.
  9. Ian Branch

    Version setting??

    Hi Uwe, Yes that is correct however the added convenience of the added menu option was vey convenient. I construe from your response that it wasn't part of MMX. It has been part of my menu for so long I have forgotten where it came from/what put it there. I shall look elsewhere.. Thank you for responding. Ian
  10. Ian Branch

    How do I return to the 'Constructor'??

    Hi Remy, There is only the one form.
  11. Ian Branch

    Codesnip 4 data files??

    Hi Team, I am rebuilding my PC. 😞 Fortunately I have backups. 🙂 I can recover my Codesnip data files if someone can tell me: a. Where they are kept; and b. What their file extent looks like/is. Once I have the right information I can restore the relevant directories. Regards & TIA, Ian
  12. Ian Branch

    Codesnip 4 data files??

    Ahhh. Excellent! Tks Brian. All recovered now. Tks again, Ian
  13. Hi Team, D12.1, Win 11, 32bit Apps. I have something strange happening when Compiling or Building in the IDE. If I load a Project Group and Compile or Build, it runs through and completes quickly as normal. If I load one of those projects from the Project Group on its own, the IDE seems to take snail pills and slows down both in response and in compling & building. To the extent that after editing the project, it is quicker to close it, load the project group and compile/build it... I thought it might have been a plug-in but I have disabled all of them and have the same result. I thought it might have been my AC so I disabled it, same result. Anybody had this issue? Anybody got any thoughts/suggestions as to where to look? Regards & TIA, Ian
  14. Ian Branch

    Mixed Build speed in the IDE...

    Further A-B testing this morning confirmed my suspicion. With previous version, it took approx. 10sec. to build the project. With new version, it took approx.. 1m 56s. ☹ QED. I have let the Developer know. I will stick with the old version for now.
  15. Ian Branch

    Mixed Build speed in the IDE...

    I think I found it. I don't want to put the mozz on it but it seems to be OK now. I recalled that I had installed a component update. I reverted to the previous version and all is good now, so far. A full day tomorrow without issues and I will call it...
  16. Ian Branch

    Mixed Build speed in the IDE...

    A further observation: I mentioned above that if I open a project group and Build and/or Compile it, all is well. I just discovered that if I open the project group, and open one of the files of one of the projects in the IDE, and try to Build/Compile, I get the poor response from the IDE and the Build/Compile. 😞 If I then close that file in the IDE and right click on that same project, the Build/Compile is normal.
  17. Ian Branch

    Mixed Build speed in the IDE...

    Hi Uwe, To eliminate that possibility, I deleted a project's .dsk file and then opened the project. Same issue when I go to build it. 😞 7m 55s to build what is a small project/app
  18. Ian Branch

    Borland Registry entries??

    Hi Team, Are Rigistry entries refering to Borland anything still relevant? Or are they just left overs from past installs?
  19. Ian Branch

    Borland Registry entries??

    Thank you David. I will leave them well alone. 🙂
  20. Ian Branch

    Snippets Manager for Windows?

    Good is a relative term.. 😉 GExperts has a 'Code Librarian'. https://blog.dummzeuch.de/experimental-gexperts-version/ Then there is CodeSnip. https://github.com/delphidabbler/codesnip I use both. Neither have all three of the capabilities you mention. HTH, Ian
  21. Hi Team, I have downloaded and installed SVGIconsImageList from GitHub. No issues there. The components are appearing in most of my Apps projects under the Design tab components except for one form in a project. A Datamodule. It is fine if/when I install SVGIconImageList via GetIt. What could be causing them to be missing from just the one form on the one project? It is complaining that Class TSVGIconImageCollection is not found. Regards & TIA, Ian
  22. Ian Branch

    3rd party library not showing in a Form.

    Noted. Again, I have never knowingly touched this.
  23. Ian Branch

    3rd party library not showing in a Form.

    OK. {%CLASSGROUP 'System.Classes.TPersistent'} Didn't look right, so I changed it to; {%CLASSGROUP 'Vcl.Controls.TControl'} And it is happ now. I have no idea how/when it was et to System.Classes.TPersistent. 😞 Thanks for the prompt/pointer. Regards, Ian
  24. Ian Branch

    3rd party library not showing in a Form.

    This is the code for the Datamodule: unit dmImages; interface uses System.SysUtils, System.Classes, Vcl.BaseImageCollection, SVGIconImageCollection, GITLAKLib; type TdmI = class(TDataModule) SVGIC: TSVGIconImageCollection; end; var dmI: TdmI; implementation {%CLASSGROUP 'System.Classes.TPersistent'} {$R *.dfm} end. It is working fine as is att using SVGIconsImageList from GitHub. Ian
  25. Hi Team, D12.1 A 3rd Party IDE plug in on GitHub pricked my interest. I downloaded, built and installed it. As it turns out, it isn't of any use to me. I can't find any mechanism to remove it. I could delete the .bpl. but will probably end up with error messages when i start the IDE. I found an entry in the Registry but: a. I am unsure if it is the right/only one to delete. b. I am leary of doing so on spec as I have been bitten a couple of times previously playing in the registry. What is the best/safest method to remove it please? Regards & TIA, Ian
×