Adding flexibility at run time question [message #43923] |
Tue, 03 May 2005 16:13 |
Marc Reinig
Messages: 30 Registered: June 2004
|
Member |
|
|
I would like to be able to select a particular procedure to run at run time
rather than at design time.
One thought would like my program to look in a particular directory and
select a procedure name, which will be a concatenation of the name any .pro
file it finds there and a standard suffix and run it.
I.e. if there were three files in the directory: a.pro, b.pro, and c.pro, it
would know that there would be a procedure named a-xxx, b-xxx, and c-xxx in
the files respectively which my program could call. But how would I have it
call the procedure based on the name of a file.
Doing this at compile time would also be acceptable, but I still haven't
figured out how to call a procedure whose name I don't type in but create on
the fly.
Any guidance on how I would do this?
Marco
________________________
Marc Reinig
UCO/Lick Observatory
Laboratory for Adaptive Optics
|
|
|