Re: Adding flexibility at run time question [message #43919] |
Tue, 03 May 2005 16:47 |
Marc Reinig
Messages: 30 Registered: June 2004
|
Member |
|
|
Ah! Wonderful! ;=)
So many neat things!
Marco
________________________
Marc Reinig
UCO/Lick Observatory
Laboratory for Adaptive Optics
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.1ce1b7522325e01f9899e9@news.frii.com...
> Marc Reinig writes:
>
>> 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?
>
> I guess I'd try CALL_PROCEDURE. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Adding flexibility at run time question [message #43921 is a reply to message #43919] |
Tue, 03 May 2005 16:29  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Marc Reinig writes:
> 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?
I guess I'd try CALL_PROCEDURE. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|