Category : Files from Magazines
Archive   : PCTV1N2.ZIP
Filename : TESTDUMP.BAS

 
Output of file : TESTDUMP.BAS contained in archive : PCTV1N2.ZIP
DECLARE SUB VarDump (Device$, Target AS ANY, ItSize AS INTEGER)
TYPE TestIt
anInt AS INTEGER
aLong AS LONG
aSingle AS SINGLE
aDouble AS DOUBLE
ALine AS STRING * 16
END TYPE

TYPE Test2
a AS INTEGER
b AS DOUBLE
c AS STRING * 2
END TYPE

DIM TestVar AS TestIt
DIM SecondTest AS Test2
DIM TestVar2 AS TestIt
CLS

TestVar.ALine = "This is a test"
TestVar.anInt = 128
TestVar.aLong = 32000
TestVar.aSingle = 5.35
TestVar.aDouble = 653.35

TestVar2.ALine = "This is a test\\"
TestVar2.anInt = 128
TestVar2.aLong = 32000
TestVar2.aSingle = 5.35
TestVar2.aDouble = 653.35

SecondTest.c = "ab"
SecondTest.a = 1
SecondTest.b = 4

CALL VarDump("SCRN:", VARPTR(SecondTest), LEN(SecondTest))

CALL VarDump("SCRN:", VARPTR(TestVar), LEN(TestVar))

CALL VarDump("SCRN:", VARPTR(TestVar2), LEN(TestVar2))

PRINT "Press any key"
DO
a$ = INKEY$
LOOP UNTIL a$ <> ""

Test$ = "This is a test of looking at strings!"
CALL VarDump("SCRN:", VARPTR(Test$), 4)
CALL VarDump("SCRN:", SADD(Test$), LEN(Test$))

PRINT "Press any key"
DO
a$ = INKEY$
LOOP UNTIL a$ <> ""

Test% = 5
CALL VarDump("SCRN:", VARPTR(Test%), 2)



  3 Responses to “Category : Files from Magazines
Archive   : PCTV1N2.ZIP
Filename : TESTDUMP.BAS

  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/