Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NN0202.ZIP
Filename : DIM.PRG

 
Output of file : DIM.PRG contained in archive : NN0202.ZIP
* CREATING TWO-DIMENSIONAL ARRAYS
* F. Ho
*
* The example below declares a two-dimensional array:

clear
ITEMS = 2 && or you may define ITEMS
ELEMENTS = 7 && and ELEMENTS at run-time
declare WEEK[ITEMS * ELEMENTS]

WEEK[DIM2(1,2)] = "Sun"

? WEEK[DIM2(1,2)]
quit


function DIM2
parameters X,Y
return(((X - 1) * ELEMENTS) + Y)


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NN0202.ZIP
Filename : DIM.PRG

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/