BASIC stack
| Author | Message | ||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3364 |
I was planning user defined functions and subroutines. For example: 100 FUNCTION MyFun(var1, var2) 200 MyFun = var1 + var2 300 RETURN You could then us it in your program: 10 x = MyFun(3, 6) And x should contain 9. Also a similar thing for subroutines (except they do not return a value). I am about half way there on this one. Is it what you were looking for? Geoff Geoff Graham - http://geoffg.net |
||||