Re: procedure in case statement [message #82147 is a reply to message #82049] |
Mon, 19 November 2012 06:06   |
hannah_ue
Messages: 14 Registered: November 2012
|
Junior Member |
|
|
Am Montag, 19. November 2012 14:36:19 UTC+1 schrieb hann...@web.de:
> hi there,
>
> i'm relatively new to IDL programming. is there any way to run a PROcedure in a CASE statement? i want to ask myself via READ which PROcedure i want to use.
>
> thanks for your help!
>
> ich
hm... i get the same error. what i have is: 2 procedures i wrote which work. instead of using two different files for each procedure, i want one file where i can choose the one procedure i like. lets call them proc_one,a,b,c and proc_two,d,e,f. i tried it like the following:
read,rot,prompt='rot via proc one or two? (proc_one,proc_two)'
case rot of
'proc_one': call_procedure,proc_one,a,b,c
'proc_two': call_procedure,porch_two,d,e,f
endcase
maybe this is not very clever but i have no idea how to do it in another way
|
|
|