

Ian Branch
Members-
Content Count
1431 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Ian Branch
-
Hi Team, D10.4.1. I have the following code or equivalent in several places in a Unit and other apps. // if not FilterID1.Execute then dlgResult := False; // FilterValue := Trim(FilterID1.Value); // if FilterID1.Value.IsEmpty then dlgResult := False else dlgResult := True; // if dlgResult then begin if not TryStrToInt(FilterValue, iJobNo) then begin MessageBeep(MB_ICONERROR); showmessage('An Invalid Job # has been entered!'); end else break end else ApplyFilter := false; I keep getting the following warning.. Pointing to the " if not FilterID1.Execute then dlgResult := False;" Yet dlgResult is clearly used in the "if dlgResult then" test. Is this a bug or a "known issue"? If not, how do I get rid of the annoying warning? Aside from turning all H2077 warnings off. Regards & TIA, Ian
-
"Value assigned to 'xxxxxxxx' never used" issue..
Ian Branch replied to Ian Branch's topic in General Help
Ahhhh. Thank you Remy. A little nuance I hadn't realised. 😞 Filed away for future reference. Your restructure of the code showed me that the was redundant. Regards & Thank you again for the assist. Ian -
GExperts 1.3.18 experimental twm 2021-02-21 released
Ian Branch replied to dummzeuch's topic in GExperts
Built fine here for D2007 & D10.4.1. -
Hi Team, D10.4.1, Indy as supplied with Delphi. I have the following code.. begin // IdSSLIOHandlerSocketOpenSSL1 := TIdSSLIOHandlerSocketOpenSSL.Create(self); // IO HANDLER SETTINGS // with IdSSLIOHandlerSocketOpenSSL1 do begin Destination := 'smtp-mail.outlook.com:587'; Host := 'smtp-mail.outlook.com'; MaxLineAction := maException; <<<<< Error here. Port := 587; SSLOptions.Method := sslvTLSv1; SSLOptions.Mode := sslmUnassigned; SSLOptions.VerifyMode := []; SSLOptions.VerifyDepth := 0; end; I am getting an Undeclared identifier error for maException. Is this a known issue? If so, is there a work around? Will it matter if I comment out the line?? Regards & TIA, Ian
-
Hi Remy... OK on the Instructions. "svn co https://github.com/IndySockets/Indy/trunk Indy10" using TortiseSVN seems to keep updating.. Currently it is at rev 3791. Am I getting the wrong one?? Ian
-
Hi Guys, I am late to the party here.. Can someone explain what the issue/problem is? How would it manifest itself to me? Why is it good to remove it? i.e. what benefit does it give me? Regards & TIA, Ian
-
Thinking further down the line when I have this all stable.. What is the easiest/best method to replace the Indy supplied with D10.4, with the latest from GitHub? I have the svn for the latest Indy10 on my D:\Indy10 att. I keep it updated/current. I did try replacing the supplied version with the GitHub version back with D10.3 but screwed the whole thing up. :-(
-
Hi Remy & Lajos, Thank you for your support. I am up and running. The sample code I started with had assumed the components were on the form, this was part of my problem, once I 'created' the components in the code all dropped into place and the addition of IdGlobal solved the last issue. Regards & Tks again. Ian
-
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
-
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
-
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
-
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
-
Hi Team, Has anybody tested/validated under D10.4.1? Ian
-
Hmmm. Having written as I have above it is actually quite easy. Please ignore my Query/Question. Regards, Ian
-
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.
-
Oooops. You are correct, it is a Decimal field. Apologies, had Time on my mind and, well, call it a Senior's Moment. 😞 Ian
-
A component named DotNetForm already exists.????
Ian Branch replied to Ian Branch's topic in Delphi IDE and APIs
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 -
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
-
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
-
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
-
Tks Anders. It was worth the ask to confirm one way or the other. Cheers, Ian
-
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
-
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
-
Hi Remy, Ahhh. I see it now. Didn't think at all of a separate App. Regards & Tks. Ian
-
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