Jump to content

Empty string: Difference between revisions

added OpenEdge solution
(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}}==
73

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.