50g group photo

Yahoo Groups archive

50g

Index last updated: 2026-04-28 22:38 UTC

Message

Can someone answer a question about program sub-routines

2009-07-04 by rickwendel763242

I'm aware that sub-routines are very useful.  The thing I don't like is that the sub-routine is an object that must be stored in the same directory as the main program (I think).  If its a big program you have a bunch of little programs to sort through to find the main program.  Is their a way to tidy that up?  Not to mention that you have to purge them all if you plan to use them with a CASE statement as objects to be evaluated - unless you can call the sub-routine in the form of a compiled local variable and CASE statement object which I haven't actually tried yet.  (Compiled local variables automatically go away after program execution.) If their was a quick, neat way of doing all that it would be more useful than what I'm actually asking for help with.  But, never-the-less I feel that what I'm about to describe would be useful anyway.  That is, how do you write a small program (sub-routine) and copy and paste its contents into a larger one?  I'm not talking about calling the name, I'm talking about copying the contents.  How do you copy the contents of the small one and place it inside at a specific point in the larger program?  Or, is their a way to just use the sub-routine name without having to keep 20 subs in the same directory with the main program?

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.