revdb_init

Jan Schenkel janschenkel at yahoo.com
Wed Jun 16 06:59:30 EDT 2004


--- K <nnoydb at excite.com> wrote:
> 
> 
> Is there a way to aquire the program/startup stack
> name when a library stack receives savingStandalone?
> If so I can just have my library stacks set a
> property "RevolutionLibraryModule" with it's short
> name then clear it when I receive savedStandalone.
> So I can execute a start using when necessary.
> 
> 
> My configuration is as listed below.
> 
> 
> Standalone stack DSMS.rev
> Sub stack Reconciliation card Enities
> Secfilings database interface (a main stack)
> secfilngs.rev
> 
> 
> The secfilings stack is encountering the error.
> 
> K
> 

Hi Kevin,

Your conclusion is correct, you are bumping into a
current design limitation in the engine. However, you
can apply the same approach Revolution uses to allow
all stacks access to the externals, by adding your
standalone mainstack to the stacksInUse.
To avoid message path conflicts, it is strongly
advised to move all unnecessary handlers out of the
standalone mainstack's stack-script (for example, by
moving a number of handlers to the script of the first
card).

After that, insert the following piece of code into
the script of the first card of the standalone
mainstack :
--
on preOpenStack
  if the short name of this stack is not among the
lines of the stacksInUse
  then start using stack (the short name of this
stack)
end preOpenStack
--

This way, all mainstacks opened from your standalone
application will have access to the externals that you
added to your standalone.

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 


More information about the use-livecode mailing list