Home > Back-end >  Delphi7 error No argument for the format '%'
Delphi7 error No argument for the format '%'

Time:09-27

The correct code is as follows, No argument for the format '%'
USES IdMultipartFormData;

Procedure TForm1. Button2Click (Sender: TObject);
Var
Data: TIdMultipartFormDataStream;
The begin
Data:=TIdMultipartFormDataStream. Create;
Data. AddFormField (' cz ', 'value of 2%).
The end;

CodePudding user response:

Estimation is not support some of special characters, see what AddFormField source code

CodePudding user response:

Seemingly keyword conflict?

CodePudding user response:

Assignment, will call GetFieldSize function, this function code is as follows:

The function TIdFormDataField. GetFieldSize: LongInt;
The begin
.
FFieldSize:=Length (the Format (' - '+ (Collection as TIdFormDataFields). FParentStream. A Boundary +
CRLF + sContentDisposition + CRLF + CRLF + FFieldValue + CRLF, [FieldName]));
.
The end;

The Format of

CodePudding user response:

Seems to lack formatting format templates,
  • Related