clear datsource from tsqlquery lazarus / 16-Databases ---------------------------------------------------------------------- talorigomat · 2016-02-01 15:00 Apologies for asking this as I'm sure I've seen the answer before but just can't find it this time.  How can I set and clear a TSQLquey's datasource in code? ---------------------------------------------------------------------- FTurtle · 2016-02-01 15:26 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i qry.DataSource := nil; ---------------------------------------------------------------------- talorigomat · 2016-02-01 15:38 Thanks FTurtle, that works fine