Empty string: Difference between revisions
Content deleted Content added
added OpenEdge solution |
|||
Line 427:
s2 empty? false
</pre>
=={{header|OpenEdge/Progress}}==
Strings can be stored in CHARACTER and LONGCHAR variables. Both are initially empty. Both can also be unknown. A CHARACTER has a maximum length of approx 32000 bytes.
<lang progress>DEFINE VARIABLE cc AS CHARACTER.
IF cc > '' THEN
MESSAGE 'not empty' VIEW-AS ALERT-BOX.
ELSE IF cc = ? THEN
MESSAGE 'unknown' VIEW-AS ALERT-BOX.
ELSE
MESSAGE 'empty' VIEW-AS ALERT-BOX.
</lang>
=={{header|PARI/GP}}==
|