02-25-2004, 10:04 PM
Quote:ok, heres a question which is a variation of that.
if you have an array, with a datatype, why cant you pass it into a sub?
ie why cant you:
where subblah is a sub which calls for 3 inputs.Code:CALL subblah(var1, var2, array(x).Z)
why cant you do this?
as far as I know, you can.
Code:
DECLARE SUB subblah(var1%, var2%, var3%)
TYPE bleh
Z AS INTEGER
END TYPE
DIM array(10) AS bleh
CALL subblay (1, 2, array(5).Z)
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i