odd directory behaviour in DreamCard

Dr.John R.Vokey vokey at uleth.ca
Mon Sep 13 21:36:00 EDT 2004


The following code works (and has always worked) in Metacard (MC), and 
Revolution (RR), both as a stack and as a standalone (and even over 
OSs), but not in DreamCard:

In the card script of the first card:

global thePath

on openCard
   --
   --  Get/Set Paths
   --
   put the filename of this stack into thePath
   set the itemdelimiter to "/"
   delete the last item of thePath
   -- (other irrelevant stuff deleted)
   set the filename of image "Test" to thePath&"/test.jpg"
   -- (other irrelevant stuff deleted)
end openCard

In MC and RR, the path to the image is correctly specified and the 
image appears, but not in DreamCard.  Tracking it down, DreamCard sets 
the path to the image as "/test.jpg", completely ignoring the global 
thePath.  Why would DreamCard not set the global thePath?

--
John R. Vokey, PhD
Professor
B.E.R.G. - Behaviour and Evolution Research Group
Micro-Cognition Laboratory
Department of Psychology & Neuroscience
University of Lethbridge
Lethbridge, Alberta T1K 3M4
CANADA



More information about the use-livecode mailing list