Mark-
Members-
Content Count
251 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Mark-
-
Thanks, it is not. I have 10.4 but use 10.2. I think I have 10.4 installed on a VM somewhere.
-
There is not an overloaded version that accepts two boolean values in 10.2. I do see the online help does list one for 11.2 I wonder which version it was added.
-
I found TJSONObject.ParseJSONValue and tried it. With invalid JSON text it just returns a nil result as expected, no exception is generated, with Delphi 10.2. There are no exceptions set to ignore in "language exceptions" that are related to JSON. Any ideas?
-
Right, I should have said "block" or "terminator" based.
-
I thought testing would be line based, but what do I know. The one site I toyed with the most is https://jsononline.net/json-validator. For the above example results: "Error: Parse error on line 2: { "foo": "bar, quz deg} ---------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined' "
-
Thanks I read the "README" and did not see how I could pass some JSON text and then get any errors reported. Did I miss something?
-
Depends on when you create an instance of TFoo. Unless I am missing something.
-
I want winning lottery numbers. Next.
-
I switched to SSL.com years ago, for code signing certificates. Verification process was OK. Good prices.
-
I would post on http://forum.madshi.net/. The creator normally answers without much delay.
-
Never used it so SWAG, two parameters?
-
Yes, which is: Result := Frac(AValue);
-
I wondered that also. Time and Now put the same value in MyTime, according to the debugger inspector. I "thought" the compiler would remove the date porition of Now because MyTime is TTime not TDateTime. But if I turn off the "Visualizer" in the watch properties and look at MyTime (Now) as a float it is 44689.4217036343. And MyTime (Time) as a float it is 0.422856287... So for me, use Time and for safety "Frac" the result of "dm.SettingBACKUPHOUR.AsDateTime;" BackUpStart := Frac(dm.SettingBACKUPHOUR.AsDateTime);
-
If you set the time values, per the code I used, the "if" does work. Which leads back to "BackUpStart := dm.SettingBACKUPHOUR.AsDateTime; // which is 20:30". If you replace it with: BackUpStart := EncodeTime(20,30,0,0); // which is 20:30 "if" does work. Right? Back to "BackUpStart := dm.SettingBACKUPHOUR.AsDateTime;". Later; I am wondering if the debugger inspector knows it is defined as TTime and truncates the date portion for display. Not sure that is possible. If you change BackUpStart to TDateTime, does it display the same value in the debugger?
-
OK, so what is the problem? Did you examine the value of "BackUpStart" in the debugger?
-
Hello, If you made the code: MyTime := EncodeTime(20,45,0,0); BackUpStart := EncodeTime(20,30,0,0); // which is 20:30 BackUpEnd := BackUpStart + EncodeTime(0,30,0,0); // which is 21:00 The "if" works so something in the first three lines is amiss. I suspect "dm.SettingBACKUPHOUR.AsDateTime" is returning a full date AND time. TTime is a TDateTime. Remove the date portion if present. Good luck, Mark
-
Hello, We and our customers have used many email servers/services to send notification emails. A customer wanted to use Outlook.com and was unable to send a test message. Normally we put the email address in the “RcptName” list and the person’s name in the “HdrTo” property. I investigated and found Outlook.com required the header “to” field must be or contain the email address. We used: RcptName.Add('example@123ABC.com') HdrTo:=’Bob’ With OutLook.com we had to use: RcptName.Add('example@123ABC.com') HdrTo:= 'example@123ABC.com' Or RcptName.Add('example@123ABC.com') HdrTo:= 'Bob <example@123ABC.com>' Anyone predict a problem using: “HdrTo:= Bob <example@123ABC.com>” with all servers/services? Thanks, Mark
-
Hello, Thanks for the reply. >...it is normal for that to have friendly name and email address. Good, so I will make the change to send both in all instances. Cheers, Mark
-
Has anyone used this code?
-
Is Move the fastest way to copy memory?
Mark- replied to dummzeuch's topic in RTL and Delphi Object Pascal
Please publish the results, I am most interested. -
Is Move the fastest way to copy memory?
Mark- replied to dummzeuch's topic in RTL and Delphi Object Pascal
Are you planning any testing/bench marking to verify they are a better option? -
Thank you.