小编kou*_*oul的帖子

使用TRESTRequest添加参数

我有一些问题来编译这部分代码:

RESTRequest.AddParameter('Id',edtId.Text,TRESTRequestParameterKind.pkGETorPOST);
Run Code Online (Sandbox Code Playgroud)

它说 :

未声明的标识符TRESTRequestParameterKind

我已经在表格上下降了以下组件: TRESTClient,TRESTRequest,TRestResponse

任何想法我错过了什么或为什么我有这个错误代码?

delphi delphi-xe7

4
推荐指数
1
解决办法
4079
查看次数

如何使用MQL4在WebRequest()调用中以JSON发送POST?

我想使用JSON格式POSTMQL4-script 发送一个到节点服务器。

我已根据以下文档尝试了中的webRequest()标准功能MQL4,但未成功。

从MQL4文档中:

Sending simple requests of type "key=value" using the header `Content-Type: application/x-www-form-urlencoded`.    

    int  WebRequest( const string  method,           // HTTP method  
                     const string  url,              // URL 
                     const string  cookie,           // cookie 
                     const string  referer,          // referer 
                     int           timeout,          // timeout 
                     const char   &data[],           // the array of the HTTP message body 
                     int           data_size,        // data[] array size in bytes 
                     char         &result[],         // an array containing server response data 
                      string      &result_headers …
Run Code Online (Sandbox Code Playgroud)

json webrequest mql4

4
推荐指数
2
解决办法
9807
查看次数

Messagedlg在Delphi xe7 android中

我只是试图在安装Delphi xe7,android平台上的MessageAlerts期间执行一个示例,遗憾的是它不起作用,它给出了以下错误消息:

阻止此平台中未实现的对话框

procedure TMessageAlertsForm.btnMultiButtonAlertClick(Sender: TObject);
begin
  { Show a multiple-button alert that triggers different code blocks according to
    your input }
  case MessageDlg('Choose a button:', System.UITypes.TMsgDlgType.mtInformation,
    [
      System.UITypes.TMsgDlgBtn.mbYes,
      System.UITypes.TMsgDlgBtn.mbNo,
      System.UITypes.TMsgDlgBtn.mbCancel
    ], 0) of
    { Detect which button was pushed and show a different message }
    mrYES:
      ShowMessage('You chose Yes');
    mrNo:
      ShowMessage('You chose No');
    mrCancel:
      ShowMessage('You chose Cancel');
  end;
end;
Run Code Online (Sandbox Code Playgroud)

任何想法如何解决?

delphi android firemonkey delphi-xe7

2
推荐指数
1
解决办法
1万
查看次数

在MQL4脚本中管理JSON数组格式

我需要从JSON数组中获取数据。
我使用一个WebRequest()函数调用通过nodejs(api)从数据库中获取订单列表,然后得到以下JSON数据格式,例如:

[{"orderid":       123556,
  "ordertype":     0,
  "ordercurrency": "EURUSD",
  "orderdt":       "2016-12-03 03:00:00"
  },
 {"orderid":       123457,
  "ordertype":     0,
  "ordercurrency": "GBPUSD",
  "orderdt":       "2016-12-03 03:15:00"
  }
 ]
Run Code Online (Sandbox Code Playgroud)

知道如何将其转换为常规数组以管理数据吗?

谢谢。

/库尔

json mql4

2
推荐指数
1
解决办法
3326
查看次数

使用多设备应用程序在Delphi xe7中的StatusBar中显示数据

在以前的Delphi版本中使用此组件(statusBar)之前,如下所示:StatusBar1.Panel [0] .Text:='data'; 在Delphi xe7中,此组件的行为已更改为我不知道,请让我知道如何使用Delphi XE7在StatusBar中插入数据吗?

谢谢。

delphi firemonkey delphi-xe7

1
推荐指数
1
解决办法
2554
查看次数

标签 统计

delphi ×3

delphi-xe7 ×3

firemonkey ×2

json ×2

mql4 ×2

android ×1

webrequest ×1