TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: TIM HUTZLER
from: THOMAS GOHEL
date: 1996-06-18 00:00:00
subject: Re: Passing a field

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.