4GL Error -4518 / Temporary String Storage
Posted in 1997
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
Hello, I am trying to use a CONSTRUCT statement which exits immediately by using the EXIT CONSTRUCT within the BEFORE CONSTRUCT. This seems to be causing 4GL temporary string storage to be taken and not released. Soon after this statement I get an error: 4GL run-time error number -4518. The 4GL program cannot allocate any more space for temporary string storage. What I am trying to do is take the contents of a subset of fields in a form and "extract" the filter by using a construct statement. The user enters criteria into a ONE form, but I want to get several different filters from the form by using separate constructs. I do NOT want to user to have to press Escape. Is this incorrect syntax? Is there another way to accomplish this? Or is this a bug? 4GL Version: 4.11.UC4 Engine: SE 5.01.UD3 Thanks in advance, Tom Boldt ON!Contact Software Corporation tom@oncontact.com This is an example (there are several functions like this). The tempval array has what was originally entered into each of the fields. ###################################################################### function act_construct() ###################################################################### define temp1 char(80) open window sel_win3 at 2,3 with 22 rows, 76 columns attribute (border) open form sc3 from "screen" display form sc3 let v_act_cri = " " construct v_act_cri on gmin_mngr.act_code, gmin_mngr.result_code, gmin_mngr.sls_psn_code, gmin_mngr.project_code, gmin_mngr.opp_code, gmin_mngr.date_, gmin_mngr.date_, gmin_mngr.result_date, gmin_mngr.result_date, gmin_mngr.sls_psn_code from s_screen.act_code, s_screen.result_code, s_screen.sls_psn_code, s_screen.project_code, s_screen.opp_code, s_screen.date_1, s_screen.date_2, s_screen.result_date1, s_screen.result_date2, s_screen.rep_only before construct display tempval[7] to s_screen.act_code display tempval[8] to s_screen.result_code display tempval[9] to s_screen.sls_psn_code display tempval[10] to s_screen.project_code display tempval[11] to s_screen.opp_code display tempval[12] to s_screen.date_1 display tempval[13] to s_screen.date_2 display tempval[14] to s_screen.result_date1 display tempval[15] to s_screen.result_date2 display tempval[16] to s_screen.rep_only exit construct end construct close form sc3 close window sel_win3 if length(v_act_cri) = 0 then let v_act_cri = "1=1" end if let int_flag = 0 end function #_act_construct() ###################################################################### Tom Boldt on!Contact Software Corporation "Adaptable Solutions for Today's Sales Organization" 414.375.6555 mailto:tom@oncontact.com http://www.oncontact.com