Initialising variant record lazarus / 21-General ---------------------------------------------------------------------- MarkMLl · 2022-06-10 09:57 Given a variant record type 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 RPoint = Record            Case Boolean of            False : (X,Y,Z : Real);         True : (R,theta,phi : longword);            end; how do I initialise a constant of that type with three reals? MarkMLl ---------------------------------------------------------------------- dseligo · 2022-06-10 10:11 Like this? 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 const cpoint: RPoint = (X: 1.1; Y: 2.2; Z: 3.3); ---------------------------------------------------------------------- MarkMLl · 2022-06-10 10:14 Quote from: dseligo on June 10, 2022, 12:11:38 pmLike this? 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 const cpoint: RPoint = (X: 1.1; Y: 2.2; Z: 3.3); Of course :-) Many thanks for that, I'd just converted from a simple numeric type and was hung up on the array style of initialisation. MarkMLl