схемка
Add(Edit,13026678,133,105)
{
Left=10
Top=10
Width=100
Text="123.45dd6aaa789"
ClearAfterEnter=1
link(onEnter,16538169:doTest,[(172,118)(172,111)])
}
Add(InlineCode,16538169,182,105)
{
WorkPoints=#6:doTest|
EventPoints=#5:onRes|
VarPoints=#
DataPoints=#
Code=#15:unit HiAsmUnit;|13:// Author Tad|0:|9:interface|0:|21:uses kol,Share,Debug;|0:|4:type|28: THiAsmClass = class(TDebug)|10: private|0:|9: public|24: onRes : THI_Event;|51: PROCEDURE doTest(var _Data:TData; Index:Word);|0:|5: end;|0:|14:implementation|0:|29:PROCEDURE THiAsmClass.doTest;|16:var s,ss:string;|16: i,j:integer;|5:BEGIN|9: ss:='';|21: s:=toString(_Data);|15: j:=Length(s);|107: for i:=1 to j do if s[i] in ['0'..'9','.',','] then if s[i]=',' then ss:=ss+'.' else ss:=ss+s[i]; |24: _hi_onEvent(onRes,ss);|4:END;|0:|0:|4:end.|
link(onRes,1869744:doReplace,[])
}
Add(Edit,62047,280,105)
{
Left=125
Top=10
Width=135
ReadOnly=0
}
Add(Replace,1869744,231,105)
{
SubStr="."
link(onReplace,62047:doText,[])
}