Posts: 13
Threads: 5
Joined: May 2003
I am trying to save my variables in one of my sub routines. The problem is that I am trying set all the variables to equal my type variables. Needless to say I have quite a few type variables. My question is... how can save a type file from within a sub routine.
I am the Great Destroyer"
-Duo Maxwell 'Gundam Wing'
Posts: 704
Threads: 0
Joined: Dec 2002
e.g.,
DIM MYVAR AS MYTYPE
If you want to call MYSUB and pass MYVAR to/from that subroutine, you'd just do the usual call statement:
CALL MYSUB(MYVAR)
Your SUB statement would be something like
SUB MYSUB(MYVAR AS MYTYPE)
You can include other variables/parameters in the CALL and SUB statements if you need to.
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.