alfhabetagama Posted April 15, 2013 Posted April 15, 2013 hai advance ... can anybody help me!! I have a problem with record numbers on UniDBGrid, first RecNo always -1,I want to be the first RecNo 1. next RecNo no problem, what's the solution. I use this code on procedure CalcFields if DM.QueryDataPending.FieldByName('RecNo').AsInteger = -1 then DM.QueryDataPending.FieldByName('RecNo').AsInteger := DM.DSDataPending.DataSet.RecNo+2 else DM.QueryDataPending.FieldByName('RecNo').AsInteger := DM.DSDataPending.DataSet.RecNo; there're some thing wrong with this code? Matur Nuwun / thank before Quote
alfhabetagama Posted April 16, 2013 Author Posted April 16, 2013 :=abs(DM.DSDataPending.DataSet.RecNo); thank you very nice, its work, once again thank you ganzqgy. I was worried earlier because of any default dataset for recno always -1 and i'm newbie. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.