On 2018-04-04 16:05, Bo Berglund wrote:
> Yes, I use Indy since the Delphi days but I have not used it to send
> files before.
Yes, there is no problem in using Indy with FPC - I've done it for
years. So no need to switch components.
> Indy has a TIdHTTP object/component, which presumably can be
On 2018-04-07 10:13, Graeme Geldenhuys wrote:
> Have you tried this?
>
> http://lmgtfy.com/?q=delphi+indy+sending+file+via+http+post
>
> I see many answers listed there. ;-)
And if you are really lazy... ;-)
Indy has TIdMultipartFormDataStream for this purpose:
procedure TForm1.SendPos
On Sat, 7 Apr 2018 10:13:06 +0100, Graeme Geldenhuys
wrote:
>Have you actually tried asking the question in the official Indy support
>newsgroup?
>
>I've always gotten very quick responses from them.
>
Well, I asked in the Embarcadero forum (using XanaNews nttp
interface...) in the internet.winso
On 2018-04-07 10:20, Graeme Geldenhuys wrote:
> And if you are really lazy... ;-)
And here's an even simpler version.
[ from Remy Lebeau ]-
TIdHTTP has two overloaded versions of Post() that take a filename as input:
var
Response: String;
Response :=
IdHTTP
Those newsgroups are a horrid suggestion. The most recent messages are
from 2016. It seems they only leave it up for posterity.
On 04/07/2018 05:13 AM, Graeme Geldenhuys wrote:
On 2018-04-04 16:05, Bo Berglund wrote:
Yes, I use Indy since the Delphi days but I have not used it to send
files b
On 2018-04-07 15:32, Alexander Grotewohl wrote:
> Those newsgroups are a horrid suggestion. The most recent messages are
> from 2016. It seems they only leave it up for posterity.
I got personally assured by Remy Lebeau that the NNTP newsgroups are
checked just as frequently as the Web Forums. Th
>> How can this code
>> {$scopedenums on}
>> type
>>Bar = set of (A, B, C);
>> refer to A, B, C?
> Bar.A
>
Actually Bar.A won't work, notice the "set of".
Same problem with var x: (a, b, c).
I wonder could they make such code to not compile at all...
___
indeed. there are other type declarations where 'set of' is valid, so
maybe it inadvertently piggybacks on those
to correct the code.. something like:
{$scopedenums on}
type
bar = (a, b, c);
var
foo: set of bar;
begin
foo:=[bar.a, bar.c];
if bar.a in foo then
writeln('yay obscure pa