RE: Array vars clobbered in 4GL 730UC5
Posted in 2000
Chris We have 7.30.uc5 tools on Solaris 2.6. This value displayed is 3 No problem here. Either the Linux port or your environment? MW -----Original Message----- From: owner-informix-list@iiug.iiug.org [mailto:owner-informix-list@iiug.iiug.org]On Behalf Of Christopher Moore Sent: Wednesday, November 22, 2000 10:16 AM To: informix-list@iiug.org Subject: Array vars clobbered in 4GL 730UC5 Hi, I've found a serious problem with Informix 4gl 730UC5 for Intel Linux. The following code demonstrates this: DEFINE func ARRAY[1000] OF RECORD kn SMALLINT, descn CHAR(40) END RECORD LET func[1].kn=3 LET func[1].descn="" DISPLAY func[1].kn The value will appear as 8195. ( func[1].kn=1 gives 8193 ). It only happens if you assign descn="" not " " or NULL or another value. It appears that desc="" clobbers the smallint in the array. It also happens when other vars are declared in the record and for all array indexes. Can anyone else reproduce this with that tool version? Regards, Chris.