ArrayArrayArrayArrayArrayArray
Statistics: Posted by ethnix73 — 06 Mar 2011, 12:38
Thanks anyway.
]]>
/////////////////////////////////////////////
// Remove Comma text element
////////////////////////////////////////////
// parameters declaration
var input : Tparameter;
var nth : Tparameter;
var output : Tparameter;
var sl1 : TStringList;
// destroy
procedure Destroy;
begin
sl1.free;
end;
// initialisation : create parameters
procedure init;
begin
SetModuleColor($808080+302060);
Input := CreateParam('in',ptTextField);
SetIsOutPut(Input,false);
nth := CreateParam('num',ptdataField);
SetIsOutPut(nth,false);
SetMin(nth,0);
SetMax(nth,MAXINT);
SetFormat(nth,'%.0f');
output := CreateParam('out',ptTextField);
SetIsInPut(Output,false);
Sl1 := TStringList.Create;
end;
procedure Callback(n:integer);
var idx : integer;
var result : string;
begin
Sl1.CommaText := GetStringValue(Input);
idx := round(GetValue(nth));
if (idx>=0)
and (idx<SL1.count)
then Sl1.Delete(idx);
SetStringValue(Output, Sl1.CommaText);
// strace(GetStringValue(outPut));
end;
// no process bloc
Statistics: Posted by ethnix73 — 03 Mar 2011, 16:39
CODE:
Sl1.Delete(idx);SetStringValue(Output, Sl1.CommaText);Statistics: Posted by bsork — 03 Mar 2011, 15:46
/////////////////////////////////////////////
// Get Comma text element
////////////////////////////////////////////
// parameters declaration
var input : Tparameter;
var nth : Tparameter;
var output : Tparameter;
var sl1 : TStringList;
// destroy
procedure Destroy;
begin
sl1.free;
end;
// initialisation : create parameters
procedure init;
begin
SetModuleColor($808080+302060);
Input := CreateParam('in',ptTextField);
SetIsOutPut(Input,false);
nth := CreateParam('num',ptdataField);
SetIsOutPut(nth,false);
SetMin(nth,0);
SetMax(nth,MAXINT);
SetFormat(nth,'%.0f');
output := CreateParam('out',ptTextField);
SetIsInPut(Output,false);
Sl1 := TStringList.Create;
end;
procedure Callback(n:integer);
var idx : integer;
var result : string;
begin
Sl1.CommaText := GetStringValue(Input);
idx := round(GetValue(nth));
if (idx>=0)
and (idx<SL1.count)
then result := SL1.Strings[idx]
else result := '';
SetStringValue(Output,result);
// strace(GetStringValue(outPut));
end;
// no process bloc
Statistics: Posted by ethnix73 — 03 Mar 2011, 15:31
Statistics: Posted by ethnix73 — 03 Mar 2011, 15:26
Statistics: Posted by ethnix73 — 06 Mar 2011, 12:38
/////////////////////////////////////////////
// Remove Comma text element
////////////////////////////////////////////
// parameters declaration
var input : Tparameter;
var nth : Tparameter;
var output : Tparameter;
var sl1 : TStringList;
// destroy
procedure Destroy;
begin
sl1.free;
end;
// initialisation : create parameters
procedure init;
begin
SetModuleColor($808080+302060);
Input := CreateParam('in',ptTextField);
SetIsOutPut(Input,false);
nth := CreateParam('num',ptdataField);
SetIsOutPut(nth,false);
SetMin(nth,0);
SetMax(nth,MAXINT);
SetFormat(nth,'%.0f');
output := CreateParam('out',ptTextField);
SetIsInPut(Output,false);
Sl1 := TStringList.Create;
end;
procedure Callback(n:integer);
var idx : integer;
var result : string;
begin
Sl1.CommaText := GetStringValue(Input);
idx := round(GetValue(nth));
if (idx>=0)
and (idx<SL1.count)
then Sl1.Delete(idx);
SetStringValue(Output, Sl1.CommaText);
// strace(GetStringValue(outPut));
end;
// no process bloc
Statistics: Posted by ethnix73 — 03 Mar 2011, 16:39
CODE:
Sl1.Delete(idx);SetStringValue(Output, Sl1.CommaText);Statistics: Posted by bsork — 03 Mar 2011, 15:46
/////////////////////////////////////////////
// Get Comma text element
////////////////////////////////////////////
// parameters declaration
var input : Tparameter;
var nth : Tparameter;
var output : Tparameter;
var sl1 : TStringList;
// destroy
procedure Destroy;
begin
sl1.free;
end;
// initialisation : create parameters
procedure init;
begin
SetModuleColor($808080+302060);
Input := CreateParam('in',ptTextField);
SetIsOutPut(Input,false);
nth := CreateParam('num',ptdataField);
SetIsOutPut(nth,false);
SetMin(nth,0);
SetMax(nth,MAXINT);
SetFormat(nth,'%.0f');
output := CreateParam('out',ptTextField);
SetIsInPut(Output,false);
Sl1 := TStringList.Create;
end;
procedure Callback(n:integer);
var idx : integer;
var result : string;
begin
Sl1.CommaText := GetStringValue(Input);
idx := round(GetValue(nth));
if (idx>=0)
and (idx<SL1.count)
then result := SL1.Strings[idx]
else result := '';
SetStringValue(Output,result);
// strace(GetStringValue(outPut));
end;
// no process bloc
Statistics: Posted by ethnix73 — 03 Mar 2011, 15:31
Statistics: Posted by ethnix73 — 03 Mar 2011, 15:26