-
Content Count
2555 -
Joined
-
Last visited
-
Days Won
149
Posts posted by Uwe Raabe
-
-
5 hours ago, Dave Nottage said:a bug in Android
More a convention that can be worked around as shown in the answer to that SO question.
-
4 hours ago, Lars Fosdal said:I assume you mean "smoothly" or "effortlessly"?
Indeed! I'm currently on vacation and my brain is probably in low energy mode.
- 1
-
I cannot say for myself and it might depend on the people there, but I have heard from a coulple of others that it went smoothless.
-
My list - with increasing nerd factor:
- Instant Grep
- Grepility
- Greppo
- 1
- 1
-
22 minutes ago, softtouch said:und when I allow to add them
You probably didn't allow to add the units, but allowed to add SynEditDR to the requires clause instead. If you deny that request, the units are compiled into your package.
If you want to make use of the SynEdit package you must make sure that SynEditDR.dcp can be found during compile and deploy the corresponding bpl with your application.
-
Tested in 10.3.3 and 11.3 - works in both of them.
Update: Works also in 10.2.3, but fails in 10.1.2
- 1
-
Perhaps a UniqueString(s) before unloading the package might work then?
It looks like the problem comes from the package invalidating the result string memory when unloading. The tricky part now is to find a workaround for this.
-
Can you try assigning the string constant to a variable first and/or calling UniqueString on result after assignment? The string literal may vanish when unloading the package.
-
4 minutes ago, DelphiUdIT said:What I think could instead be a problem is not so much the download of the correct installer of the product, but rather its activation which still has a limited number of actions.
Even without an active subscription one can request a bump for the installation counter. It has just to be requested from sales instead of support.
-
17 minutes ago, Stefan Glienke said:We already have the situation that calling any method on a record disables the warning
Could it be that using the equality operator qualifies for calling any method?
-
4 hours ago, FPiette said:Isn't a captcha a valid and easy solution?
Perhaps when you ask which image shows valid Delphi code.
- 1
- 1
-
I have never seen some documentation about a REST API to forbit or even avoid POST requests. If you have a link to such docs I would be interested.
In my (surely limited) experience with REST API implementations that are not simply read-only, I never encountered anything restricted to GET requests.
-
You can use a TRESTResponseDataSetAdapter and connect its Response property to your TRESTResponse instance (alternatively use a TRESTResponseJSON instance to provide a TJSONObject). Iterating through the records list and adding each tubes items to your dataset may need some additional coding around, though.
-
The above JSON has an array "records", where each item contains a "coin_mech" object, which itself contains the "tubes" array. Are you interested in the "tubes" from one specific "records" item or do you want to collect all "tubes" arrays from all "records" items.
-
Which Delphi version are you using?
-
IMHO the best way ist to use a dedicated class handling the parameters and place that in body:
type TMyParam = class private FUserName: string; FSecret: string; FShortcode: string; FMsisdn: string; FMessage: string; public property Message: string read FMessage write FMessage; property Msisdn: string read FMsisdn write FMsisdn; property Secret: string read FSecret write FSecret; property Shortcode: string read FShortcode write FShortcode; property UserName: string read FUserName write FUserName; end; ... var myParam := TMyParam.Create; try myParam.UserName := 'email@email.com'; myParam.Secret :='password'; myParam.Shortcode := 'pacific bulkms'; myParam.Msisdn := '6799998122'; myParam.Message := 'Hello World'; RestRequest1.AddBody(myParam); finally myParam.Free; end;
- 2
-
May be I missed it, but I cannot see where you set RESTRequest1..Method to rmPost (the default is rmGet). The default parameter kind is pkGetOrPost, which put the parameters in the URL for GET and into the body for POST. This would explain the "Empty Request..." error.
-
So you are out for a warning/hint when abbreviations are used? (I won't consider error as long as CTRL-O-O actually follows such a setting)
You might consider to rephrase the description as it isn't clear IMHO.
-
It is not clear to me what this issue is about. Currently you can use the abbreviated version as well as the verbose one. I don't see where hint/warning/error settings come into play here, besides the directives affecting them.
- 1
-
The problem in your code is that the anonymous method calling RunWork uses the counter variable directly. While it is correct that this variable is captured for the anonymous method, it is captured by its address and not by its value. Therefore the RunWork call uses the value of counter that is given in the moment of that call. Usually that is different from what you expect.
You can solve this by injecting a method returning the anonymous method with the counter value at that time.
function MakeRunWork(ACounter: Integer): TProc; begin Result := procedure begin RunWork(ACounter); end; end; procedure TForm780.Button1Click(Sender: TObject); const NumberOfParts = 1; var counter: integer; TaskArray: array of iTask; begin { --- run button --- } SetLength(TaskArray, NumberOfParts); for counter := 0 to NumberOfParts - 1 do begin try TaskArray[counter] := TTask.Run(MakeRunWork(counter)); except on E:EAggregateException do ShowMessage( E.ToString); end; // try end; // for counter end;
- 5
- 1
-
5 hours ago, Willicious said:The code needs to execute iff all conditions are met (Y - 0 and Y - 1 and Y - 2 and Y - 3, etc) and not just if any of the possible 6 conditions are met (Y - 0 or Y - 1 or Y - 2 or Y - 3, etc).
I don't understand how this can even work at all. If PosY equals Y - 1 then PosY cannot be equal to Y - 2 nor Y - 3 and so on. There can either one condition be met or none, but not all.
- 1
-
@David Heffernan, that was my first idea, too. There is just some code missing that handles the BytesRead > 0 case before the loop exits. Some if-then after the read cannot be avoided in this case.
-
I cannot see any compile error shown in the original post either. There is only one reference which doesn't make any sense:
8 hours ago, Blavatsky said:The compiling error was a given.
-
One can also use the csUpdating flag in ComponentState, which is controlled by the Updating and Updated methods. It works for all TComponent descendants.
But now we are in a much wider realm than the original OnClick problem describes.
TButtonEdit and left button dropdown menu
in VCL
Posted
This seems to be an oversight in TButtonedEdit (or rather TEditButton.Glyph) to set the DropDownMenu PopupComponent before calling its Popup method. Can you file a QP report similar to RSP-33837, please?