ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray
Statistics: Posted by senso — 16 Apr 2021, 20:50
]]>
Statistics: Posted by dmitriyc — 31 Mar 2021, 23:17
CODE:
///////////////////////////////////////////////////////////////////////////////// // declaration var refresh,textOut: Tparameter; var Xout, Yout : Tparameter; var st : TStringList; // initialisation create parametersprocedure init;var i : integer; begin refresh := CreateParam('get_rez',ptButton); SetIsOutPut (refresh,false); textOut := CreateParam('text',ptTextField); SetIsInPut(textOut,false); Xout := CreateParam('X',ptdataField); SetIsInPut( Xout,false); Yout := CreateParam('Y',ptdataField); SetIsInPut(Yout,false); end; // read procedure ReadTextFile; var all : string; var line : string;var position : integer; begin st.create; st.clear; st.loadfromFile(GetApplicationPath + 'LogUsine.log'); all := st.GetCommaText; position := pos('Resolution',all); if (position>0) then begin position := position+11; SetStringValue(textOut, copy(all, position, 9)); line := copy (all, position, 4); SetValue(Xout, strtoint(line)); line := copy (all, position+5, 4); SetValue(Yout, strtoint(line)); end; st.free; end; // Callbackprocedure callBack(n : integer);begin if n=0 then ReadTextFile;end;Statistics: Posted by senso — 19 Mar 2021, 19:53
Statistics: Posted by 23fx23 — 28 Nov 2018, 12:19
Statistics: Posted by 23fx23 — 27 Nov 2018, 22:33
CODE:
//////////////////////////////://////////////////////////// Extract rez from usine log ///////////////////////// // declaration var refresh,textOut : Tparameter; var Xout, Yout : Tparameter; var st : TStringList; // initialisation : create parametersprocedure init;var i : integer; begin refresh := CreateParam('get_rez',ptButton); SetIsOutPut(refresh,false); textOut := CreateParam('text',ptTextField); SetIsInPut(textOut,false); Xout := CreateParam('X',ptdataField); SetIsInPut(Xout,false); Yout := CreateParam('Y',ptdataField); SetIsInPut(Yout,false); end; // read procedure ReadTextFile; var all : string; var line : string;var position : integer; begin st.create; st.clear; st.loadfromFile(GetApplicationPath + 'LogUsine.log'); all := st.GetCommaText; position := pos('Resolution',all); if(position>0) then begin position := position+11; SetStringValue(textOut, copy(all, position, 9)); line := copy (all, position, 4); SetValue(Xout, strtoint(line)); line := copy (all, position+5, 4); SetValue(Yout, strtoint(line)); end; // itrace(position); st.free; end; // Callbackprocedure callBack(n:integer);begin if n=0 then ReadTextFile;end;Statistics: Posted by 23fx23 — 26 Nov 2018, 23:55
Statistics: Posted by nay-seven — 26 Nov 2018, 20:12
Statistics: Posted by dmitriyc — 24 Nov 2018, 17:14
Statistics: Posted by senso — 16 Apr 2021, 20:50
Statistics: Posted by dmitriyc — 31 Mar 2021, 23:17
CODE:
///////////////////////////////////////////////////////////////////////////////// // declaration var refresh,textOut: Tparameter; var Xout, Yout : Tparameter; var st : TStringList; // initialisation create parametersprocedure init;var i : integer; begin refresh := CreateParam('get_rez',ptButton); SetIsOutPut (refresh,false); textOut := CreateParam('text',ptTextField); SetIsInPut(textOut,false); Xout := CreateParam('X',ptdataField); SetIsInPut( Xout,false); Yout := CreateParam('Y',ptdataField); SetIsInPut(Yout,false); end; // read procedure ReadTextFile; var all : string; var line : string;var position : integer; begin st.create; st.clear; st.loadfromFile(GetApplicationPath + 'LogUsine.log'); all := st.GetCommaText; position := pos('Resolution',all); if (position>0) then begin position := position+11; SetStringValue(textOut, copy(all, position, 9)); line := copy (all, position, 4); SetValue(Xout, strtoint(line)); line := copy (all, position+5, 4); SetValue(Yout, strtoint(line)); end; st.free; end; // Callbackprocedure callBack(n : integer);begin if n=0 then ReadTextFile;end;Statistics: Posted by senso — 19 Mar 2021, 19:53
Statistics: Posted by 23fx23 — 28 Nov 2018, 12:19
Statistics: Posted by 23fx23 — 27 Nov 2018, 22:33
CODE:
//////////////////////////////://////////////////////////// Extract rez from usine log ///////////////////////// // declaration var refresh,textOut : Tparameter; var Xout, Yout : Tparameter; var st : TStringList; // initialisation : create parametersprocedure init;var i : integer; begin refresh := CreateParam('get_rez',ptButton); SetIsOutPut(refresh,false); textOut := CreateParam('text',ptTextField); SetIsInPut(textOut,false); Xout := CreateParam('X',ptdataField); SetIsInPut(Xout,false); Yout := CreateParam('Y',ptdataField); SetIsInPut(Yout,false); end; // read procedure ReadTextFile; var all : string; var line : string;var position : integer; begin st.create; st.clear; st.loadfromFile(GetApplicationPath + 'LogUsine.log'); all := st.GetCommaText; position := pos('Resolution',all); if(position>0) then begin position := position+11; SetStringValue(textOut, copy(all, position, 9)); line := copy (all, position, 4); SetValue(Xout, strtoint(line)); line := copy (all, position+5, 4); SetValue(Yout, strtoint(line)); end; // itrace(position); st.free; end; // Callbackprocedure callBack(n:integer);begin if n=0 then ReadTextFile;end;Statistics: Posted by 23fx23 — 26 Nov 2018, 23:55
Statistics: Posted by nay-seven — 26 Nov 2018, 20:12
Statistics: Posted by dmitriyc — 24 Nov 2018, 17:14