顺水外汇EA交易网MT4

标题: 想问一下各位大神一个关于MQL4自定义函数的问题? [打印本页]

作者: l6787494    时间: 2016-3-11 00:30
标题: 想问一下各位大神一个关于MQL4自定义函数的问题?
在MQL4里面有没有什么函数可以载取字符串的啊?比方说我读取了订单的备注,但是备注是ALI123,但是我想将这个备注分开来判断,先判断ALI,然后再判断123,用什么方法可以解决

作者: tempasdf    时间: 2016-3-12 19:58
StringSubstr
Extracts a substring from a text string starting from the specified position.
string  StringSubstr(
   string  string_value,     // string
   int     start_pos,        // position to start with
   int     length=0          // length of extracted string
   );

Parameters
string_value
[in]  String to extract a substring from.
start_pos
[in]  Initial position of a substring. Can be from 0 to StringLen(text) -1.
length=0
[in] Length of an extracted substring. If the parameter value is equal or less than 0 or parameter isn't set, the substring will be extracted from the indicated position till the string end.
Return Value
Copy of a extracted substring, if possible. Otherwise returns an empty string.

作者: HMGD    时间: 2016-3-12 22:30
希望对你有帮助


作者: wx_tVhVDi59    时间: 2016-3-17 16:49
刷金币,穷
作者: l6787494    时间: 2016-3-26 19:28
相当大的帮助谢谢
作者: 落落Triste    时间: 2016-10-16 23:37
一样有用 学习了
作者: EUR168    时间: 2017-7-18 12:48
回复可见什么的我最喜欢了 ,O(∩_∩)O哈哈~
作者: 福相随    时间: 2017-7-18 13:24
伸手习惯了,慢慢我的习气就变坏了




欢迎光临 顺水外汇EA交易网MT4 (http://waterforex.com/) Powered by Discuz! X3.2