Jump to content

Ian Branch

Members
  • Content Count

    1272
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ian Branch

  1. Ian Branch

    TIdSSLIOHandlerSocketOpenSSL.MaxLineAction issue.

    Hi Remy, First foray into Indy. I just copied code from another source. Oh! OK. I take it I still need to create the IOHandler and set the other parameters? 'Scoped Enums' - Haven't touched as far as I am aware. I had a look in Building|Delphi Compiler|Compiling and can't see anything that suggests 'Scoped Enums' to me. 😞 I'm guessing if Scoped Enums is On or OFF by declaring MaxLineAction := TIdMaxLineAction.maException; Should resolve it, shouldn't it? Where does TIdMaxLineAction come from? Regards & Tks, Ian
  2. Ian Branch

    convert Procedure to a Unit??

    Hi Team, Before I stumble blindly into something I have no knowledge of. Again.. ;-) I have a very large procedure in an App that is called infrequently. I would like to extract it into a separate Delphi Unit that can be created/used when/if required. Is there a mechanism/tool to pick up the procedure and create a Unit out of it or embed it into a Unit? Regards & TIA, Ian
  3. Ian Branch

    convert Procedure to a Unit??

    Oh. I did not know that. Kinda defeats my intended/desired purpose then. Oh well. Back to the drawing board. Thanks to all for your input. Regards, Ian
  4. Hi Team, Given two Integers, one recording hours, the other minutes, how do I then convert them into a single datetime type value for saving to a DateTime field in a table.? The hours integer value can be anything from 0 to 999. Minutes 0 to 59. I need to be able to reverse that as well. i.e. take the db datetime field and convert it to the two integer values for display. Regards & TIA, Ian
  5. Ian Branch

    ANN: DDevExtensions is now on GitHub

    Hi Team, Has anybody tested/validated under D10.4.1? Ian
  6. Ian Branch

    Convert two Integers to a DateTime??

    Hmmm. Having written as I have above it is actually quite easy. Please ignore my Query/Question. Regards, Ian
  7. Ian Branch

    Convert two Integers to a DateTime??

    All. The DB Table field I need to work to/from is a Decimal field. It is an existing field that a DBComponent is accessing but is giving issues. I want to eliminate that component and use two Integer inputs and convert them to the Decimal field. 2hrs & 30 mins converts to 2.5, 55 hrs & 45mins converts to 55.75, etc.
  8. Ian Branch

    Convert two Integers to a DateTime??

    Oooops. You are correct, it is a Decimal field. Apologies, had Time on my mind and, well, call it a Senior's Moment. 😞 Ian
  9. Ian Branch

    A component named DotNetForm already exists.????

    Hi Baron, I couldn't say but all things are possible. 🙂 It still happens from time to time but I live with it att. Ian
  10. Ian Branch

    TaskMessageDlg('.... behind form?

    HI Remy, Thank you for the clear and informative response. Another thing I have learnt today. If/when they provide actual evidence of the issue, again it is only hearsay att, I will implement the "TaskDialog1.Execute(Self.Handle);" method to see if that 'cures' it. Regards & Tks again, Ian
  11. Ian Branch

    Try-Finally-end; & Exit??

    To All, Regrettably my skills & knowledge are not at your depth. If they were, then I wouldn't have needed to ask the question. I have also always been a believer that if you have a question in your mind then someone else probably has too. Ergo, ask it, and get the answer and at the same time make the answer available to others. In this particular case, I looked at Exit but not at Try-Finally. Why, I don't know, it simply didn't occur to me. I'm going to call it a Senior's Moment. My thanks to those that have responded and clarified the issue for me and I unreservedly apologise to all inconvenienced by responding to my question. I will attempt to do better next time. Ian
  12. HI Team, D10.4.1. Can I change the default width of a TaskMessageDlg? I can't find any way to do it. :-( Regards & TIA, Ian
  13. Ian Branch

    Can the width of TaskMessageDlg be set?

    Tks Anders. It was worth the ask to confirm one way or the other. Cheers, Ian
  14. Ian Branch

    Library Path disappeared??

    Hi All, D10.4.1, Windows 10 64 bit. Somehow my 32 bit Library path totally disappeared. Any thoughts where I might find/recover it?? Regards & TIA, Ian
  15. Ian Branch

    Library Path disappeared??

    Hi emailx45, Thanks for your input/suggestion. I went to that registry entry and it was empty. I then remembered the Delph keeps a history of sorts of changes to the Library Path. See attached. I selected the last one, it was incomplete, but was able to add those paths missing. Relatively painless. So, I have two questions now.. 1. Why did it happen in the first place?? I will leave that in the hands of the Windows Gods. 2. Where does Delphi keep this History? I would like to make sure it is appropriately backed up. Regards, Ian
  16. Ian Branch

    Internet time sync - with some timeout

    Hi Remy, Ahhh. I see it now. Didn't think at all of a separate App. Regards & Tks. Ian
  17. Ian Branch

    Internet time sync - with some timeout

    Hi Remy, Ahh. Thank you. At least I know it is possible. :-) Pardon my ignorance but which would be the easiest to achieve? Without giving me the answer, can you point me where to look? Regards, Ian
  18. Ian Branch

    Internet time sync - with some timeout

    You might also want to test the success of SyncTime.. ... .... if Sntp.SyncTime() then Log('SetSystemTime(): System clock sync completed') else Log('SetSystemTime(): System clock sync failed'); .... .... It fails on my Win 10 PC and on a 2012 Server. It is OK if the App is run as Administrator. I wonder if there is a way to have just the routine run at elevated level??? Ian
  19. FWIW see attached. Regrettably, I can't recall where I downloaded it from. EIAES Encryption.zip
  20. Ian Branch

    Main Form appearing issue..

    Hi Team, D10.4.1, 32bit App, Windows 10. I think I have chased this up once before but I can neither find it or recall where. Please see the attached short video. At the start the Main Form is open. Click the Audio button and the Audio form is opened, then the Print Listing option selected. Note the Main Form appears at the same time but under the Print dialog. When the Print dialog is closed they both disappear. Obviously I don't want the Main Form to appear when the dialog is called, even though it doesn't hamper the usage. As far as I can tell, everything is being called correctly. I am open firstly to understanding why the Main Form is appearing, and secondly, how to prevent it. Regards & TIA,. Ian MMLIssue.mp4
  21. Ian Branch

    Main Form appearing issue..

    Shouldn't it be that by default?
  22. Hi Team, D10.4.1, Win 10. For some reason I have a project that insists on opening the project file in the IDE rather than the MainForm I would prefer. I deleted the following files: .dproj, .dproj.local, .identicache, .otares. There is no .dsk. The double clicked the .dpr and still it opened the project file rather than the MainForm. I tried closing the project file and then saving from the IDE with just the Mainform open but that didn't work. There is obviously some way to make it not open the .dpr and to open the MainForm but I can't find it. Help! Regards & TIA, Ian
  23. Ian Branch

    Main Form appearing issue..

    Hi Guys, Thanks for the pointers. I found the answer here.. http://www.delphigroups.info/2/e6/483281.html I recall now the User was complaining that dialogs were being hidden by the form. That was in an earlier Delphi. I shall have to experiment a little to see if the issue still persists now I have commented out that piece of code. Thanks again. Ian
  24. Ian Branch

    Main Form appearing issue..

    All, Thank you for your input. Appreciated. Something Lajos said.. Triggered something in my head. Having another look at the code in the Sub Form I found this.. ... .... private { Private declarations } public { Public declarations } protected procedure CreateParams(var Params: TCreateParams); override; end; var And this.. procedure TAudioForm.CreateParams(var Params: TCreateParams); begin inherited; Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW; Params.WndParent := 0; end; Now, I have no recollection of what that code was put in for, oh so long ago, but if I comment it out all is good. No more MainForm appearing. Can someone enlighten me as to why I would have put that there?? I'm sure I put it there for a reason. ;-) Ian
  25. Ian Branch

    Main Form appearing issue..

    And that's a reasonable assumption except I can't find anything to account for it. I have eliminated everything in the MainForm Create & Show events. The Audio form is called with a simple.. AudioForm := TAudioForm.Create(Self); AudioForm.Show; All the AudioForm does on Creation is open tables. There is nothing in the Show event. I thought it might have been something in the Project file but I can't see anything there that would contribute/cause this. Ian
×