Jump to content

Null object: Difference between revisions

Line 269:
 
=={{header|BASIC}}==
 
 
==={{header|Applesoft BASIC}}===
Line 304 ⟶ 305:
t{} is null
</pre>
 
==={{header|GWBASIC/QBasic/QB/VBDOS}}===
These dialects of BASIC have no built-in object system. One STRING variable can have a default empty ("") value and a numeric one a default zero (0) value. A STRING variable can be assigned with the NULL (Chr$(0)) value if needed and can be assesed with the instruction.
 
<lang BASIC>
IF VAR$ = CHR$(0) THEN PRINT "Variable has a null value."
</lang>
 
=={{header|Bracmat}}==
58

edits

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