ENTRY statement raises error 560 with empty LONGCHAR
The ENTRY statement will raise error 560 on an empty LONGCHAR, when referencing a list entry in the longchar. This does not happen for a character variable. For example the following code:
DEF VAR c AS CHAR INIT "".
DEF VAR lc AS LONGCHAR INIT "".
ENTRY(1, c) = "".
ENTRY(1, lc) = "" NO-ERROR.
MESSAGE "CHAR Entries : " NUM-ENTRIES(c) SKIP(1)
"LONGCHAR Entries : " NUM-ENTRIES(lc) SKIP
"Error : " ERROR-STATUS:ERROR SKIP
ERROR-STATUS:GET-MESSAGE(1) VIEW-AS ALERT-BOX.
According to the documentation the default initial value for a LONGCHAR variable is the empty string, but this doesn't seem to be the same as the CHARACTER variable that also has the empty string as its default.