Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble Saving Variables in SUB
#1
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'
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)