Re: Newbie Progress Bar
Re: Newbie Progress Bar
- Subject: Re: Newbie Progress Bar
- From: "Marc K. Myers" <email@hidden>
- Date: Sat, 16 Dec 2000 12:05:59 -0500
- Organization: [very little]
Steve Goodman wrote:
>
From: "Goodman, Steve" <email@hidden>
>
To: "'Chad Gray'" <email@hidden>, email@hidden
>
Subject: RE: Newbie Progress Bar
>
Date: Thu, 14 Dec 2000 17:27:51 -0600
>
>
The script errors and says it does not understand my
>
> UpdateGauge(). What
>
> am i doing wrong? Or does anyone know of some code i can look at?
>
>
>
>
try this:
>
>
UpdateGauge() of me
>
>
or
>
>
tell me to UpdateGauge()
>
>
When calling a subroutine from a subroutine you have to tell AS that it is a
>
part of the script hence the "of me". Should fix it for ya.
Juat to avoid more newbie confusion, the problem is not calling a
subroutine from a subroutine. The problem is calling a subroutine from
inside a "tell" block to an application. The assumption is that all
commands in a tell block are directed to that application. Hence the
error. There are three forms you can use to get around this:
UpdateGauge() of me
tell me to UpdateGauge()
tell me
UpdateGauge()
end tell
Marc [12/16/00 12:04:14 PM]