main stack and substack questions

Jim Ault JimAultWins at yahoo.com
Fri Mar 30 17:17:58 EDT 2007


On 3/30/07 2:10 PM, "Robert Mann" <robmann at gp-racing.com> wrote:
> Have a substack and when the card opens it looks for a background image
>
> set the itemdelimiter to slash
>     put the filename of this stack into dbPath
>     delete the last item of dbPath
>     put "/cartridge fork.PNG" after dbPath_#
>     set the filename of image "cartridge fork.PNG" to dbPath

> dbPath is empty I think it is because if you look in the stack properties
> under filename it has a [inherited] at the end, how do I correct this?

 put the filename of stack main stack into dbPath
--substacks don't have their own filenames.
or
replace "[inherited]" with empty in dbPath
> 
> Second question
> 
> If I open a substack from substack how do I pass the card name and stack
> name as a variable to replace "view_valving" and "insertvalving" in the
> following code?
> 
> put fld "newrecord_id" of card "view_valving" of stack "insertvalving" into
> fld "record_id"

I don't understand your second question.

Jim Ault
Las Vegas





More information about the use-livecode mailing list