Arsip: insert multiselect record ke tabel

 
user image
more 14 years ago

riagil

Salam semua, Saya mau tanya, gimana caranya data yang saya centang di SMDBgrid di insert ke tabel, kemudian cara menghapus data yang sudah di centang. Saya pake Zeos dan SMDBgrid sebagai komponennya... terima kasih atas bantuannya. :D
user image
more 14 years ago

hawkeye

Belum pernah pakai SMDBGrid tapi bukannya tinggal di looping dari FIRST to EOF di baca yang check nya = TRUE terus diinsert?
user image
more 14 years ago

riagil

mas bisa kasih contoh scriptnya...?
user image
more 14 years ago

madi

procedure TForm1.btn1Click(Sender: TObject);
begin
   with smdbgrid.datasource.dataset do
     begin
      first;
      disablecontrols;
       while not EOf do
        begin
          if fields[x].value = True then
           begin
             //insert ke table
           end;
           Next;
        end;
       enablecontrols;
     end;
end;
more ...
  • Pages:
  • 1
Share to

AI Forward

🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now: https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD

Random Topic

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com