comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: passing variable error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: passing variable error [message #66256] Sun, 26 April 2009 18:44
xiao zhang is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: passing variable error
Next Topic: Readline and/or easy command line history access

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:45:10 PDT 2025

Total time taken to generate the page: 0.00414 seconds