Re: passing variable error [message #66256] |
Sun, 26 April 2009 18:44 |
xiao zhang
Messages: 81 Registered: June 2008
|
Member |
|
|
On Apr 26, 8:27 pm, David Fanning <n...@dfanning.com> wrote:
> xiao writes:
>> Sorry, the second post today, I want to pass some variable to a
>> function from the main program. The variable passed successful in the
>> first step of the loop but failed in the second step. why is that?
>
> Almost certainly because one of your assumptions is
> wrong. There is nothing to do but step through your
> code, step by step until you figure out which one
> (or ones, often) are wrong. This is Basic Programming
> 101. We can't help much.
haha,I found it, thank you~~~~DAVID~~~~~~ :)
>
> Cheers,
>
> David
>
> P.S. If it is any consolation, once you run into this
> kind of problem three or four times, it sometimes
> gets easier to solve. Or not. :-)
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: passing variable error [message #66257 is a reply to message #66256] |
Sun, 26 April 2009 18:27  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
xiao writes:
> Sorry, the second post today, I want to pass some variable to a
> function from the main program. The variable passed successful in the
> first step of the loop but failed in the second step. why is that?
Almost certainly because one of your assumptions is
wrong. There is nothing to do but step through your
code, step by step until you figure out which one
(or ones, often) are wrong. This is Basic Programming
101. We can't help much.
Cheers,
David
P.S. If it is any consolation, once you run into this
kind of problem three or four times, it sometimes
gets easier to solve. Or not. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|