G
gxch
Unregistered / Unconfirmed
GUEST, unregistred user!
我正在做一个向论坛发贴的程序,当向论坛中提交数据时出现错误提示,请大家帮我看看吧,代码如下:
Param := TIdMultipartFormDataStream.Create;
with param do
begin
AddFormField('atc_title', edit1.Text);
AddFormField('mode', '2');
AddFormField('atc_autourl','1');
AddFormField('atc_usesign', '1');
AddFormField('atc_convert', '1');
AddFormField('topped', '0');
AddFormField('digest', '0');
AddFormField('font', '宋体');
AddFormField('size', '3');
AddFormField('color', 'skyblue');
//就是下面这句出的问题,执行到这里提示‘No argument for format %c ’
//如果是正常文字就没有问题,当含有如下网址时就会出现上面的提示
//rtsp://61.143.38.129/move/%CF%B2%BE%E7%C6%AC/%B3%AC%BC%B6%C4%CC%B0%D6/%B3%
//大家看这个问题怎么解决啊?
AddFormField('atc_content',memo1.Text); //就是这句出的问题
AddFormField('atc_rvrc', '0');
AddFormField('atc_money', '0');
AddFormField('atc_downrvrc1', '0');
AddFormField('atc_attachment1', 'filename=""');
AddFormField('atc_downrvrc2', '0');
AddFormField('atc_attachment2', 'filename=""');
AddFormField('atc_downrvrc3', '0');
AddFormField('atc_attachment3', 'filename=""');
AddFormField('atc_downrvrc4', '0');
AddFormField('atc_attachment4', 'filename=""');
AddFormField('atc_downrvrc5', '0');
AddFormField('atc_attachment5', 'filename=""');
AddFormField('step','2');
AddFormField('pid','');
AddFormField('action','new');
AddFormField('fid',currendfid);
AddFormField('tid', '0');
AddFormField('article', '');
end;
大家帮帮忙吧
Param := TIdMultipartFormDataStream.Create;
with param do
begin
AddFormField('atc_title', edit1.Text);
AddFormField('mode', '2');
AddFormField('atc_autourl','1');
AddFormField('atc_usesign', '1');
AddFormField('atc_convert', '1');
AddFormField('topped', '0');
AddFormField('digest', '0');
AddFormField('font', '宋体');
AddFormField('size', '3');
AddFormField('color', 'skyblue');
//就是下面这句出的问题,执行到这里提示‘No argument for format %c ’
//如果是正常文字就没有问题,当含有如下网址时就会出现上面的提示
//rtsp://61.143.38.129/move/%CF%B2%BE%E7%C6%AC/%B3%AC%BC%B6%C4%CC%B0%D6/%B3%
//大家看这个问题怎么解决啊?
AddFormField('atc_content',memo1.Text); //就是这句出的问题
AddFormField('atc_rvrc', '0');
AddFormField('atc_money', '0');
AddFormField('atc_downrvrc1', '0');
AddFormField('atc_attachment1', 'filename=""');
AddFormField('atc_downrvrc2', '0');
AddFormField('atc_attachment2', 'filename=""');
AddFormField('atc_downrvrc3', '0');
AddFormField('atc_attachment3', 'filename=""');
AddFormField('atc_downrvrc4', '0');
AddFormField('atc_attachment4', 'filename=""');
AddFormField('atc_downrvrc5', '0');
AddFormField('atc_attachment5', 'filename=""');
AddFormField('step','2');
AddFormField('pid','');
AddFormField('action','new');
AddFormField('fid',currendfid);
AddFormField('tid', '0');
AddFormField('article', '');
end;
大家帮帮忙吧