How to change ControlsCodePage runtime from the zeos connection? lazarus / 16-Databases ---------------------------------------------------------------------- Hansvb · 2015-12-06 20:05 How to change the property ControlsCodePage runtime from the ZEOS Connection? I tried 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 DataModule_OraConn.ZConnection_Oracle.ControlsCodePage := 'cCP_UTF8'; this results in: 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 Error: Incompatible type for arg no. 1: Got "Constant String", expected "TZControlsCodePage" I actually want to fill the ControlsCodePage  with a property. So it wil be something 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 DataModule_OraConn.ZConnection_Oracle.ControlsCodePage := DataModule_OraConn.OraConn_ControlsCodePage; What type must the propery have? ---------------------------------------------------------------------- fpcoder · 2015-12-06 22:29 cCP_UTF8 belongs to the enumerated type TZControlsCodePage. You tried to assign it as a string. Try this instead: 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 DataModule_OraConn.ZConnection_Oracle.ControlsCodePage := cCP_UTF8 You'll need to add the unit ZCompatibility to the uses. ---------------------------------------------------------------------- Hansvb · 2015-12-11 19:28 Thanks, i added ZCompatibility to the uses and now it works.