Вверх ↑
Этот топик читают: Гость
Ответов: 67
Рейтинг: 1
#1: 2018-05-01 19:33:20 ЛС | профиль | цитата
Всем доброго времени.
BlockFind пропускает блоки( вернее находит их через 1), как с этим бороться ?

Пример

 Add(BlockFind,14466209,546,210)
{
StartBlock="status"
EndBlock="status"
link(onSearch,5929794:doAdd,[])
link(Text,12079362:Text,[])
}
Add(MainForm,840246,490,154)
{
Width=938
Height=501
Caption="Пример использования BlockFind"
}
Add(Edit,12079362,546,154)
{
Left=25
Top=10
Width=875
Text="{"success":1,"return":{"250010704580955":{"pair":"eth_usd","type":"sell","amount":0.00014806,"rate":737.44375951,"timestamp_created":"1524616197","status":0},"250010704501788":{"pair":"eth_usd","type":"sell","amount":0.00029432,"rate":745.50000001,"timestamp_created":"1524614687","status":0},"250010704105840":{"pair":"eth_usd","type":"sell","amount":0.00058722,"rate":749.87850001,"timestamp_created":"1524606985","status":0},"250010703974674":{"pair":"eth_usd","type":"sell","amount":0.00117958,"rate":750.22500001,"timestamp_created":"1524604384","status":0},"250010703850537":{"pair":"eth_usd","type":"sell","amount":0.00237281,"rate":746.83442401,"timestamp_created":"1524601839","status":0},"250010703674494":{"pair":"eth_usd","type":"sell","amount":0.00474236,"rate":745.48950001,"timestamp_created":"1524598216","status":0},"250010703580919":{"pair":"eth_usd","type":"sell","amount":0.00944608,"rate":726.72622753,"timestamp_created":"1524596250","status":0},"250010703177816":{"pair":"eth_usd","type":"sell","amount":0.00126058,"rate":720.35370281,"timestamp_created":"1524587834","status":0},"250010702706992":{"pair":"eth_usd","type":"sell","amount":0.02004083,"rate":720.02096281,"timestamp_created":"1524578059","status":0},"250010702705745":{"pair":"eth_usd","type":"sell","amount":0.04006925,"rate":722.73230105,"timestamp_created":"1524578031","status":0},"250010702688469":{"pair":"eth_usd","type":"sell","amount":0.07922826,"rate":729.17145504,"timestamp_created":"1524577632","status":0}}}"
}
Add(Memo,5929794,658,210)
{
Left=15
Top=105
Width=890
Height=150
}
Add(Button,15978453,490,210)
{
Left=380
Top=45
Width=135
Height=40
link(onClick,14466209:doSearch,[])
}
Add(Memo,9665686,707,210)
{
Left=15
Top=300
Width=890
Height=155
Strings=#141:status":0},"250010704501788":{"pair":"eth_usd","type":"sell","amount":0.00029432,"rate":745.50000001,"timestamp_created":"1524614687","status141:status":0},"250010704105840":{"pair":"eth_usd","type":"sell","amount":0.00058722,"rate":749.87850001,"timestamp_created":"1524606985","status|141:status":0},"250010703974674":{"pair":"eth_usd","type":"sell","amount":0.00117958,"rate":750.22500001,"timestamp_created":"1524604384","status|141:status":0},"250010703850537":{"pair":"eth_usd","type":"sell","amount":0.00237281,"rate":746.83442401,"timestamp_created":"1524601839","status|141:status":0},"250010703674494":{"pair":"eth_usd","type":"sell","amount":0.00474236,"rate":745.48950001,"timestamp_created":"1524598216","status|141:status":0},"250010703580919":{"pair":"eth_usd","type":"sell","amount":0.00944608,"rate":726.72622753,"timestamp_created":"1524596250","status|141:status":0},"250010703177816":{"pair":"eth_usd","type":"sell","amount":0.00126058,"rate":720.35370281,"timestamp_created":"1524587834","status|141:status":0},"250010702706992":{"pair":"eth_usd","type":"sell","amount":0.02004083,"rate":720.02096281,"timestamp_created":"1524578059","status|141:status":0},"250010702705745":{"pair":"eth_usd","type":"sell","amount":0.04006925,"rate":722.73230105,"timestamp_created":"1524578031","status|141:status":0},"250010702688469":{"pair":"eth_usd","type":"sell","amount":0.07922826,"rate":729.17145504,"timestamp_created":"1524577632","status|
}
Add(Label,2476507,595,154)
{
Left=390
Top=270
Width=95
Height=17
Caption="Как должно быть."
}

[/spoiler]
Редактировалось 8 раз(а), последний 2018-05-01 19:44:23
карма: 1

0
vip
#1.1контекстная реклама от партнеров
Ответов: 8889
Рейтинг: 823
#2: 2018-05-01 21:26:45 ЛС | профиль | цитата
Pavel,


Add(BlockFind,14466209,357,168)
{
IncludeBlock=1
Delete=0
StartBlock="#"
EndBlock="#"
link(onSearch,6102409:doCompare,[])
}
Add(MainForm,840246,238,112)
{
Width=938
Height=501
Caption="Пример использования BlockFind"
}
Add(Edit,12079362,308,112)
{
Left=15
Top=10
Width=885
Text="{"success":1,"return":{"250010704580955":{"pair":"eth_usd","type":"sell","amount":0.00014806,"rate":737.44375951,"timestamp_created":"1524616197","status":0},"250010704501788":{"pair":"eth_usd","type":"sell","amount":0.00029432,"rate":745.50000001,"timestamp_created":"1524614687","status":0},"250010704105840":{"pair":"eth_usd","type":"sell","amount":0.00058722,"rate":749.87850001,"timestamp_created":"1524606985","status":0},"250010703974674":{"pair":"eth_usd","type":"sell","amount":0.00117958,"rate":750.22500001,"timestamp_created":"1524604384","status":0},"250010703850537":{"pair":"eth_usd","type":"sell","amount":0.00237281,"rate":746.83442401,"timestamp_created":"1524601839","status":0},"250010703674494":{"pair":"eth_usd","type":"sell","amount":0.00474236,"rate":745.48950001,"timestamp_created":"1524598216","status":0},"250010703580919":{"pair":"eth_usd","type":"sell","amount":0.00944608,"rate":726.72622753,"timestamp_created":"1524596250","status":0},"250010703177816":{"pair":"eth_usd","type":"sell","amount":0.00126058,"rate":720.35370281,"timestamp_created":"1524587834","status":0},"250010702706992":{"pair":"eth_usd","type":"sell","amount":0.02004083,"rate":720.02096281,"timestamp_created":"1524578059","status":0},"250010702705745":{"pair":"eth_usd","type":"sell","amount":0.04006925,"rate":722.73230105,"timestamp_created":"1524578031","status":0},"250010702688469":{"pair":"eth_usd","type":"sell","amount":0.07922826,"rate":729.17145504,"timestamp_created":"1524577632","status":0}}}"
}
Add(Memo,5929794,490,168)
{
Left=15
Top=45
Width=890
Height=195
ScrollBars=2
}
Add(Button,15978453,238,161)
{
Left=410
Top=245
link(onClick,4259426:doEvent1,[])
}
Add(Memo,9665686,553,168)
{
Left=15
Top=300
Width=890
Height=155
Strings=#141:status":0},"250010704501788":{"pair":"eth_usd","type":"sell","amount":0.00029432,"rate":745.50000001,"timestamp_created":"1524614687","status|41:status":0},"250010704105840":{"pair":"eth|0:|0:|0:|49:"1524606985","status|141:status":0},"250010703974|74:{"pair":"eth_usd","type":"sell","amount":0.00117958,"rate":750.22500001,"t|0:|1018:status":0},"250010703850537":{"pair":"eth_usd","type":"sell","amount":0.00237281,"rate":746.83442401,"timestamp_created":"1524601839","status|141:status":0},"250010703674494":{"pair":"eth_usd","type":"sell","amount":0.00474236,"rate":745.48950001,"timestamp_created":"1524598216","status|141:status":0},"250010703580919":{"pair":"eth_usd","type":"sell","amount":0.00944608,"rate":726.72622753,"timestamp_created":"1524596250","status|141:status":0},"250010703177816":{"pair":"eth_usd","type":"sell","amount":0.00126058,"rate":720.35370281,"timestamp_created":"1524587834","status|141:status":0},"250010702706992":{"pair":"eth_usd","type":"sell","amount":0.02004083,"rate":720.02096281,"timestamp_created":"1524578059","status|141:status":0},"250010702705745":{"pair":"eth_usd","type":"sell","amount":0.04006925,"rate":722.73230105,"timestamp_created":"1524578031","status|141:status":0},"250010702688469":{"pair":"eth_usd","type":"sell","amount":0.07922826,"rate":729.17145504,"timestamp_created":"1524577632","status||
}
Add(Label,2476507,553,126)
{
Left=390
Top=280
Width=95
Height=17
Caption="Как должно быть."
}
Add(FormatStr,10041421,441,168)
{
DataCount=1
Mask="status%1status"
link(onFString,5929794:doAdd,[])
}
Add(Replace,1173188,308,168)
{
SubStr="status"
DestStr="##"
link(onReplace,14466209:doSearch,[])
link(Str,12079362:Text,[])
}
Add(If_else,6102409,399,168)
{
Type=5
Op2=String()
link(onTrue,10041421:doString,[])
}
Add(Hub,4259426,280,161)
{
link(onEvent1,5929794:doClear,[(347,167)(347,160)(480,160)(480,181)])
link(onEvent2,1173188:doReplace,[])
}

карма: 19

0
Ответов: 67
Рейтинг: 1
#3: 2018-05-01 22:23:35 ЛС | профиль | цитата
Леонид,О как

Спасибо большое!
карма: 1

0
Ответов: 138
Рейтинг: 2
#4: 2018-05-10 19:30:29 ЛС | профиль | цитата
Кое чего не понимаю
Как понять <>?
карма: 0
私はアニメが大好き
0
Ответов: 8889
Рейтинг: 823
#5: 2018-05-10 22:50:09 ЛС | профиль | цитата
dimosikILA, "<>" не равно
карма: 19

0
Ответов: 138
Рейтинг: 2
#6: 2018-05-11 16:21:17 ЛС | профиль | цитата
Леонид писал(а):
dimosikILA, "<>" не равно

Хох
То есть получается не равно NULL?
карма: 0
私はアニメが大好き
0
Разработчик
Ответов: 26072
Рейтинг: 2122
#7: 2018-05-11 16:43:04 ЛС | профиль | цитата
dimosikILA писал(а):
То есть получается не равно NULL?

Не равно не NULL, а не равно пустой строке. Это разные вещи.
карма: 22

0
Ответов: 138
Рейтинг: 2
#8: 2018-05-11 19:52:42 ЛС | профиль | цитата
Спасибо
Мне это облегчило некоторые задачи
карма: 0
私はアニメが大好き
0
8
Сообщение
...
Прикрепленные файлы
(файлы не залиты)