ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
695 B

  1. 100 REM Purpose: Verify DIM(), SIZE(), LBOUND() and UBOUND() functions
  2. 110 REM Author: Howard Wulf, AF5NE
  3. 120 REM Date: 2015-09-02
  4. 130 REM Note: these functions do not support for scalar variables
  5. 140 REM
  6. 190 option base 1
  7. 200 dim z, a(5,6,7), y, b(31), x, d(12,13), w
  8. 210 print dim(a), dim(b), dim(d)
  9. 220 print lbound(a), lbound(a,1), lbound(a,2), lbound(a,3)
  10. 230 print ubound(a), ubound(a,1), ubound(a,2), ubound(a,3)
  11. 240 print lbound(b), lbound(b,1)
  12. 250 print ubound(b), ubound(b,1)
  13. 260 print lbound(d), lbound(d,1), lbound(d,2)
  14. 270 print ubound(d), ubound(d,1), ubound(d,2)
  15. 280 print size(a), size(b), size(d)
  16. 900 print "TEST PASSED"
  17. 999 end