In article "Re: Passing a field" (on 16.06.96), Tim Hutzler@1:119/88 says:
Hello Tim !!
> What do I need do to to reference the element *and* make
> modifications to it from within a SUB?
You mean that: (or ??)
--- Cut -----------------------------------------------------------------
TYPE xs
var AS INTEGER
str AS STRING * 15
END TYPE
DIM t AS xs
t.var = 1
t.str = "This is a test."
CLS
PRINT t.var, t.str
Pout1 t.var, t.str
PRINT t.var, t.str
SUB pout1 (x AS INTEGER, y AS STRING * 15)
x = x + 1
y = "Pout 1"
END SUB
--- Cut End --------------------------------------------------------------
... or make the TYPE-structure as SHARED.
Regards,
----------------
/
/ h o m a s
email: author@pbsound.snafu.de
www : http://www.snafu.de/~pbsound/ (PowerBASIC's Home in Germany)
PBSOUND - The Sound Blaster Toolkit, PowerBASIC-FAQ, PowerBASIC-
sources & toolboxes, PowerBASIC on Web, PowerBASIC News and much
more or less important PowerBASIC stuff.
--- CrossPoint v3.11 R
---------------
* Origin: -= http://www.snafu.de/~pbsound/ =- (2:2410/301.12)
|