Hi All,
I have one Form like this
line no name
1 a
2 b
3 c
4 d--->now I want to change 4 places set 1.I to want this record on top how to do that.
5 e
a present I am getting
1 a
2 d ----> I want the modified record on top
3 c
4 b
i put one button in form i write clicked method
I am using this code
void clicked()
{
table1 save;
table1 _table1;
lineNum xlineNum;
int ln;
;
super();
_table1.setTmpData(tmpTable);
select firstonly _table1
order by lineNum desc
where _table1.lineNum == tmpTable.lineNum;
if (_table1.RecId)
{
ln=0;
while select forupdate tmpTable order by LineNum
{
ln++;
tmpTable.LineNum = ln;
tmpTable.update();
}
save= tmpTable.data();
tmpTable.dataSource().research();
tmpTable.dataSource().findRecord(save);
}
}
*This post is locked for comments