ElCherchu Posted October 5, 2021 Share Posted October 5, 2021 Hello In my application I load data into a TFDMemTable table and if I try to put an order at runtime, using this code with TblMemDe.Indexes.Add do begin Name := 'by_origen'; Fields := 'ID_ORIGEN;GRUPO;CONCEPTO'; Active := True; end; TblMemDe.IndexName := 'by_origen'; Some records already loaded previously are remove, the strange thing is that if I put the index to the table in design time when I try to insert the records it does not load it. I have tried in several ways but it does not work for me, I have also tried: TblMemDe.IndexFieldNames := 'ID_ORIGEN;GRUPO;CONCEPTO'; But it doesn't work either. Could anyone give me a hand with this case? I use Delphi 10.2 Unigui: 1.90.0.1530 Thanks a lot. Quote Link to comment Share on other sites More sharing options...
x11 Posted October 6, 2021 Share Posted October 6, 2021 How is this question related to Unigui?? Quote Link to comment Share on other sites More sharing options...
ElCherchu Posted October 6, 2021 Author Share Posted October 6, 2021 Hi, I think that is related to Unigui because using native delphi the code I posted before work, and just in Unigui doesn't work. I use the same component TFDMenTable in both cases.. Thank. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 6, 2021 Share Posted October 6, 2021 36 minutes ago, Efrenis said: Hi, I think that is related to Unigui because using native delphi the code I posted before work, and just in Unigui doesn't work. I use the same component TFDMenTable in both cases.. Thank. Hello Are you using professional version? Can you try with latest unigui version? Quote Link to comment Share on other sites More sharing options...
ElCherchu Posted October 11, 2021 Author Share Posted October 11, 2021 Hello Hayri I decide to get the records order by the fields I need from my DB until I update my Unigui to the last version to proof the solution you Suggest. Thank a lot. Quote Link to comment Share on other sites More sharing options...
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.