[SOLVED] Conditional creation of tables lazarus / 16-Databases ---------------------------------------------------------------------- madref · 2023-08-18 14:46 Is it possible to create tables depending on which year it is? with something like 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 {ifdef....} ---------------------------------------------------------------------- KodeZwerg · 2023-08-18 15:30 What do you mean? Isnt it enough to "FormatDateTime('yyyy', Now)" ? ---------------------------------------------------------------------- Zvoni · 2023-08-21 09:08 Quote from: madref on August 18, 2023, 04:46:01 pmIs it possible to create tables depending on which year it is? with something like 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 {ifdef....} Conditional from FPC/Lazarus, or conditional from SQL? ---------------------------------------------------------------------- RayoGlauco · 2023-08-21 10:42 More elaboration needed. You may write this, but I think you want to do something else: 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 if YearOf(Date)=2023 then  // create a table ---------------------------------------------------------------------- madref · 2023-08-25 01:14 it was a good question but a not so relevant one. but thanks for the answers